OSDN Git Service

nfsd: Reduce the number of calls to nfsd_file_gc()
authorTrond Myklebust <trondmy@gmail.com>
Mon, 6 Jan 2020 18:18:08 +0000 (13:18 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 22 Jan 2020 21:25:40 +0000 (16:25 -0500)
commitb6669305d35a3459877afef6e9f68e81bef92972
treedb070c434b3d94b16a7bd43d15f78d25d8443903
parent55f84cc47f73bdc84ef73b702c23051b426505a4
nfsd: Reduce the number of calls to nfsd_file_gc()

Don't call nfsd_file_gc() on every put of the reference in nfsd_file_put().
Instead, do it only when we're expecting the refcount to go to 1.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/filecache.c