]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit54e47bbf0c466dcf422949ee5662baae45e70867
treedb070c434b3d94b16a7bd43d15f78d25d8443903
parent27fbb7675acc96b155b849e3a2f11fdb69707c04
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