summaryrefslogtreecommitdiffstats
path: root/fs/nfs/delegation.h
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2008-12-23 15:21:39 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2008-12-23 15:21:39 -0500
commit15c831bf1a3f8cab9812a96228145200726fea33 (patch)
tree6133811e099f223d17aaa46c9672bfb367435b26 /fs/nfs/delegation.h
parent86e894899820f2b3094d5557124fc22743ae0fc7 (diff)
downloadlinux-15c831bf1a3f8cab9812a96228145200726fea33.tar.gz
linux-15c831bf1a3f8cab9812a96228145200726fea33.tar.bz2
linux-15c831bf1a3f8cab9812a96228145200726fea33.zip
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.h4
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 {
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;
};