summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/state.h
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2010-10-31 04:35:04 +0100
committerJ. Bruce Fields <bfields@redhat.com>2011-01-04 22:49:27 +0100
commitc84d500bc41658165ceb0dd04dc6a75249940fba (patch)
tree95ad867b5fb4807f5f8c1172a0797e70d5e96168 /fs/nfsd/state.h
parentnfsd4: eliminate lease delete callback (diff)
downloadlinux-c84d500bc41658165ceb0dd04dc6a75249940fba.tar.xz
linux-c84d500bc41658165ceb0dd04dc6a75249940fba.zip
nfsd4: use a single struct file for delegations
When we converted to sharing struct filess between nfs4 opens I went too far and also used the same mechanism for delegations. But keeping a reference to the struct file ensures it will outlast the lease, and allows us to remove the lease with the same file as we added it. Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/state.h')
-rw-r--r--fs/nfsd/state.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfsd/state.h b/fs/nfsd/state.h
index 39adc27b0685..84b230217b1b 100644
--- a/fs/nfsd/state.h
+++ b/fs/nfsd/state.h
@@ -81,6 +81,7 @@ struct nfs4_delegation {
atomic_t dl_count; /* ref count */
struct nfs4_client *dl_client;
struct nfs4_file *dl_file;
+ struct file *dl_vfs_file;
struct file_lock *dl_flock;
u32 dl_type;
time_t dl_time;