projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c31e4c
)
nfsd: simplify test_bit return in NFSD_FILE_KEY_FULL comparator
author
Jeff Layton
<jlayton@kernel.org>
Fri, 6 Jan 2023 15:39:01 +0000
(10:39 -0500)
committer
Chuck Lever
<chuck.lever@oracle.com>
Wed, 26 Apr 2023 13:04:58 +0000
(09:04 -0400)
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>
fs/nfsd/filecache.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/nfsd/filecache.c
b/fs/nfsd/filecache.c
index c36e3032d438649bc30eda4e652414c2caae5e12..568963b8a4777b85a66cbf5c3076c3ff816581e7 100644
(file)
--- 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;