Commit d69b8dbf authored by Jeff Layton's avatar Jeff Layton Committed by Chuck Lever
Browse files

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: default avatarJeff Layton <jlayton@kernel.org>
Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
parent 6c31e4c9
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -189,7 +189,7 @@ static int nfsd_file_obj_cmpfn(struct rhashtable_compare_arg *arg,
			return 1;
			return 1;
		if (!nfsd_match_cred(nf->nf_cred, key->cred))
		if (!nfsd_match_cred(nf->nf_cred, key->cred))
			return 1;
			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;
			return 1;
		if (test_bit(NFSD_FILE_HASHED, &nf->nf_flags) == 0)
		if (test_bit(NFSD_FILE_HASHED, &nf->nf_flags) == 0)
			return 1;
			return 1;