]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4: Clean up nfs_client_return_marked_delegations()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 27 Feb 2020 13:29:02 +0000 (08:29 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 16 Mar 2020 12:34:30 +0000 (08:34 -0400)
commit77e2b8f8601724b87f1fe91243cc805e1d81968f
tree3410c2c7aa09e6432f8c3c147a3aefdfc6efa8c6
parent84cdd34528b07b55e9afb9ec77ac6fae624c83b9
NFSv4: Clean up nfs_client_return_marked_delegations()

Convert it to use the nfs_client_for_each_server() helper, and
make it more efficient by skipping delegations for inodes we
know are in the process of being freed. Also improve the efficiency
of the cursor by skipping delegations that are being freed.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/delegation.c