]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
NFSD: Update the NFSv2 READLINK argument decoder to use struct xdr_stream
authorChuck Lever <chuck.lever@oracle.com>
Wed, 21 Oct 2020 16:21:25 +0000 (12:21 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Jun 2024 12:52:53 +0000 (14:52 +0200)
commit365835d2ff67e1a1e78dfd23b315a9ed0f8185bc
treef29d573e99c1ee920d4a28263183944657d438f4
parentecee6ba5920cfbd63646750b87db445583fd9c7c
NFSD: Update the NFSv2 READLINK argument decoder to use struct xdr_stream

[ Upstream commit 1fcbd1c9456ba129d38420e345e91c4b6363db47 ]

If the code that sets up the sink buffer for nfsd_readlink() is
moved adjacent to the nfsd_readlink() call site that uses it, then
the only argument is a file handle, and the fhandle decoder can be
used instead.

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