nfsd: Clean up nfsd_file_put()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 31 Mar 2022 13:54:02 +0000 (09:54 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Thu, 31 Mar 2022 14:39:59 +0000 (10:39 -0400)
commit999397926ab3f78c7d1235cc4ca6e3c89d2769bf
tree3874a20ce5217c531fb74f3ff7c92469973892dd
parent6b8a94332ee4f7d9a8ae0cbac7609f79c212f06c
nfsd: Clean up nfsd_file_put()

Make it a little less racy, by removing the refcount_read() test. Then
remove the redundant 'is_hashed' variable.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/filecache.c