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, 9 Sep 2014 20:01:37 +0000 (16:01 -0400)
commit2f169bcf8e04af52804c9a17db6e9a3c46d56c7f
treecde20e28dfce099bfba8d6cfb99fd4ceff816dde
parent556e64edb9ca8e12ed225a134532f9e485869083
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