]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
NFSD: Replace READ* macros in nfsd4_decode_compound()
authorChuck Lever <chuck.lever@oracle.com>
Wed, 4 Nov 2020 16:07:06 +0000 (11:07 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Jun 2024 12:52:44 +0000 (14:52 +0200)
commitb24e6a40eebae079882e2d4e776a3b5950359cf7
tree1cb4be0e574fca92829224dfd232f7e4301fcb67
parent6b48808835a2b92caeb90d8840b8dc068488b61c
NFSD: Replace READ* macros in nfsd4_decode_compound()

[ Upstream commit d9b74bdac6f24afc3101b6a5b6f59842610c9c94 ]

And clean-up: Now that we have removed the DECODE_TAIL macro from
nfsd4_decode_compound(), we observe that there's no benefit for
nfsd4_decode_compound() to return nfs_ok or nfserr_bad_xdr only to
have its sole caller convert those values to one or zero,
respectively. Have nfsd4_decode_compound() return 1/0 instead.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfsd/nfs4xdr.c