diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2008-12-23 15:21:39 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2008-12-23 15:21:39 -0500 |
commit | 15c831bf1a3f8cab9812a96228145200726fea33 (patch) | |
tree | 6133811e099f223d17aaa46c9672bfb367435b26 /fs/nfs/delegation.h | |
parent | 86e894899820f2b3094d5557124fc22743ae0fc7 (diff) |
NFS: Use atomic bitops when changing struct nfs_delegation->flags
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/delegation.h')
-rw-r--r-- | fs/nfs/delegation.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/delegation.h b/fs/nfs/delegation.h index 8299c6220e95..5e9f40e0a7d8 100644 --- a/fs/nfs/delegation.h +++ b/fs/nfs/delegation.h | |||
@@ -18,10 +18,10 @@ struct nfs_delegation { | |||
18 | struct inode *inode; | 18 | struct inode *inode; |
19 | nfs4_stateid stateid; | 19 | nfs4_stateid stateid; |
20 | int type; | 20 | int type; |
21 | #define NFS_DELEGATION_NEED_RECLAIM 1 | ||
22 | long flags; | ||
23 | loff_t maxsize; | 21 | loff_t maxsize; |
24 | __u64 change_attr; | 22 | __u64 change_attr; |
23 | #define NFS_DELEGATION_NEED_RECLAIM 0 | ||
24 | unsigned long flags; | ||
25 | spinlock_t lock; | 25 | spinlock_t lock; |
26 | struct rcu_head rcu; | 26 | struct rcu_head rcu; |
27 | }; | 27 | }; |