OSDN Git Service

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)
commitaf3b61bf61319a4808f310d04ef3ff28c224cb1e
tree3410c2c7aa09e6432f8c3c147a3aefdfc6efa8c6
parent3c9e502b59fbd243cfac7cc6c875e432d285102a
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