NFS: Use atomic bitops when changing struct nfs_delegation->flags

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
Trond Myklebust
2008-12-23 15:21:39 -05:00
parent 86e8948998
commit 15c831bf1a
3 changed files with 9 additions and 9 deletions

View File

@@ -18,10 +18,10 @@ struct nfs_delegation {
struct inode *inode;
nfs4_stateid stateid;
int type;
#define NFS_DELEGATION_NEED_RECLAIM 1
long flags;
loff_t maxsize;
__u64 change_attr;
#define NFS_DELEGATION_NEED_RECLAIM 0
unsigned long flags;
spinlock_t lock;
struct rcu_head rcu;
};