summaryrefslogtreecommitdiffstats
path: root/fs/nfsd
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2011-03-17 17:52:33 +0100
committerJ. Bruce Fields <bfields@redhat.com>2011-03-17 17:52:33 +0100
commit9ae78bcc000168251f893b1bf92a848308187695 (patch)
treed51f0f875f6a74aabe56dfcb71cf92348d4cb982 /fs/nfsd
parentnfs41: make sure nfs server return right ca_maxresponsesize_cached (diff)
downloadlinux-9ae78bcc000168251f893b1bf92a848308187695.tar.xz
linux-9ae78bcc000168251f893b1bf92a848308187695.zip
nfsd4: fix comment and remove unused nfsd4_file fields
A couple fields here were left over from a previous version of a patch, and are no longer used. Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd')
-rw-r--r--fs/nfsd/state.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/fs/nfsd/state.h b/fs/nfsd/state.h
index 2d31224b07bf..6bd2f3c21f2b 100644
--- a/fs/nfsd/state.h
+++ b/fs/nfsd/state.h
@@ -367,16 +367,12 @@ struct nfs4_file {
struct list_head fi_delegations;
/* One each for O_RDONLY, O_WRONLY, O_RDWR: */
struct file * fi_fds[3];
- /* One each for O_RDONLY, O_WRONLY: */
- atomic_t fi_access[2];
/*
- * Each open stateid contributes 1 to either fi_readers or
- * fi_writers, or both, depending on the open mode. A
- * delegation also takes an fi_readers reference. Lock
- * stateid's take none.
+ * Each open or lock stateid contributes 1 to either
+ * fi_access[O_RDONLY], fi_access[O_WRONLY], or both, depending
+ * on open or lock mode:
*/
- atomic_t fi_readers;
- atomic_t fi_writers;
+ atomic_t fi_access[2];
struct file *fi_deleg_file;
struct file_lock *fi_lease;
atomic_t fi_delegees;