nfsd: don't keep a pointer to the lease in nfs4_file
authorJeff Layton <jlayton@primarydata.com>
Fri, 22 Aug 2014 16:05:43 +0000 (12:05 -0400)
committerJeff Layton <jlayton@primarydata.com>
Tue, 7 Oct 2014 18:06:12 +0000 (14:06 -0400)
commit0c637be884f5eaa0ee53396ea7686ec0de03d126
tree836e76037f50299616011f950d20bf5090cddabe
parente51673aa5d9a8c75cc836fac687fa4dde9a76182
nfsd: don't keep a pointer to the lease in nfs4_file

Now that we don't need to pass in an actual lease pointer to
vfs_setlease on unlock, we can stop tracking a pointer to the lease in
the nfs4_file.

Switch all of the places that check the fi_lease to check fi_deleg_file
instead. We always set that at the same time so it will have the same
semantics.

Cc: J. Bruce Fields <bfields@fieldses.org>
Signed-off-by: Jeff Layton <jlayton@primarydata.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/nfsd/nfs4state.c
fs/nfsd/state.h