summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/filecache.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@kernel.org>2023-01-06 16:39:01 +0100
committerChuck Lever <chuck.lever@oracle.com>2023-04-26 15:04:58 +0200
commitd69b8dbfd0866abc5ec84652cc1c10fc3d4d91ef (patch)
treeabc0e9f002e6dcd0f68703a84e80bf06b7a1362b /fs/nfsd/filecache.c
parentnfsd: NFSD_FILE_KEY_INODE only needs to find GC'ed entries (diff)
downloadlinux-d69b8dbfd0866abc5ec84652cc1c10fc3d4d91ef.tar.xz
linux-d69b8dbfd0866abc5ec84652cc1c10fc3d4d91ef.zip
nfsd: simplify test_bit return in NFSD_FILE_KEY_FULL comparator
test_bit returns bool, so we can just compare the result of that to the key->gc value without the "!!". Signed-off-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to '')
-rw-r--r--fs/nfsd/filecache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/filecache.c b/fs/nfsd/filecache.c
index c36e3032d438..568963b8a477 100644
--- a/fs/nfsd/filecache.c
+++ b/fs/nfsd/filecache.c
@@ -189,7 +189,7 @@ static int nfsd_file_obj_cmpfn(struct rhashtable_compare_arg *arg,
return 1;
if (!nfsd_match_cred(nf->nf_cred, key->cred))
return 1;
- if (!!test_bit(NFSD_FILE_GC, &nf->nf_flags) != key->gc)
+ if (test_bit(NFSD_FILE_GC, &nf->nf_flags) != key->gc)
return 1;
if (test_bit(NFSD_FILE_HASHED, &nf->nf_flags) == 0)
return 1;