summaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4_fs.h
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@hammerspace.com>2018-09-03 01:19:07 +0200
committerTrond Myklebust <trond.myklebust@hammerspace.com>2018-09-30 21:35:17 +0200
commitace9fad43aa60a88af4b57a8328f0958e3d07bf0 (patch)
treeac636c66b18951b20fd08a180f56441879bc50b5 /fs/nfs/nfs4_fs.h
parentNFSv4: Convert open state lookup to use RCU (diff)
downloadlinux-ace9fad43aa60a88af4b57a8328f0958e3d07bf0.tar.xz
linux-ace9fad43aa60a88af4b57a8328f0958e3d07bf0.zip
NFSv4: Convert struct nfs4_state to use refcount_t
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs/nfs/nfs4_fs.h')
-rw-r--r--fs/nfs/nfs4_fs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs4_fs.h b/fs/nfs/nfs4_fs.h
index 1b4737f4cac4..8d59c9655ec4 100644
--- a/fs/nfs/nfs4_fs.h
+++ b/fs/nfs/nfs4_fs.h
@@ -188,7 +188,7 @@ struct nfs4_state {
unsigned int n_wronly; /* Number of write-only references */
unsigned int n_rdwr; /* Number of read/write references */
fmode_t state; /* State on the server (R,W, or RW) */
- atomic_t count;
+ refcount_t count;
wait_queue_head_t waitq;
struct rcu_head rcu_head;