]> www.infradead.org Git - users/dwmw2/linux.git/commit
nfsd: NFSD_FILE_KEY_INODE only needs to find GC'ed entries
authorJeff Layton <jlayton@kernel.org>
Fri, 6 Jan 2023 15:39:00 +0000 (10:39 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Apr 2024 14:19:27 +0000 (16:19 +0200)
commit9fff2daca45a7404a5c7fb0e04a9948df2da1dff
treefdf73851c72da7e279135496085e8e2e96f05f1c
parentbfa4a3996e7363700399798f2a030f0a1f7b2112
nfsd: NFSD_FILE_KEY_INODE only needs to find GC'ed entries

[ Upstream commit 6c31e4c98853a4ba47355ea151b36a77c42b7734 ]

Since v4 files are expected to be long-lived, there's little value in
closing them out of the cache when there is conflicting access.

Change the comparator to also match the gc value in the key. Change both
of the current users of that key to set the gc value in the key to
"true".

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/filecache.c