OSDN Git Service

nfsd: simplify nfs4_put_deleg_lease calls
authorJ. Bruce Fields <bfields@redhat.com>
Thu, 15 Feb 2018 20:50:49 +0000 (15:50 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 20 Mar 2018 21:51:11 +0000 (17:51 -0400)
commitcba7b3d15071fa0deb5b6e7a1c97c29d2904e6a3
tree0aacafcabfdae5ea822e35a8bbd0b058684c5786
parentb8232d3315ec746e3b5d4c9252541567e57a509b
nfsd: simplify nfs4_put_deleg_lease calls

Every single caller gets the file out of the delegation, so let's do
that once in nfs4_put_deleg_lease.

Plus we'll need it there for other reasons.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
fs/nfsd/nfs4state.c