nfsd4: use a single struct file for delegations
authorJ. Bruce Fields <bfields@redhat.com>
Sun, 31 Oct 2010 03:35:04 +0000 (23:35 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 4 Jan 2011 21:49:27 +0000 (16:49 -0500)
commitc84d500bc41658165ceb0dd04dc6a75249940fba
tree95ad867b5fb4807f5f8c1172a0797e70d5e96168
parente63eb9375089f9d2041305d04c3f33a194e0e014
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>
fs/nfsd/nfs4state.c
fs/nfsd/state.h