NFSD: Clean up SPLICE_OK in nfsd4_encode_read()
authorChuck Lever <chuck.lever@oracle.com>
Fri, 22 Jul 2022 20:08:51 +0000 (16:08 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Sat, 30 Jul 2022 00:16:57 +0000 (20:16 -0400)
commitc738b218a2e5a753a336b4b7fee6720b902c7ace
tree6814a46142d2e530bd63dbe5fd74beea297985b9
parentab04de60ae1cc64ae16b77feae795311b97720c7
NFSD: Clean up SPLICE_OK in nfsd4_encode_read()

Do the test_bit() once -- this reduces the number of locked-bus
operations and makes the function a little easier to read.

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