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)
committerChuck Lever <chuck.lever@oracle.com>
Wed, 26 Apr 2023 13:04:58 +0000 (09:04 -0400)
commit6c31e4c98853a4ba47355ea151b36a77c42b7734
tree62baed701aa48bd9aa82083f87600f6ccf5509c7
parentb8bea9f6cdd7236c7c2238d022145e9b2f8aac22
nfsd: NFSD_FILE_KEY_INODE only needs to find GC'ed entries

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