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)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 25 Jan 2021 14:36:25 +0000 (09:36 -0500)
commit1fcbd1c9456ba129d38420e345e91c4b6363db47
tree8b3f508e8a47c378a0bde1dc57ed9b1c0c14b804
parenta51b5b737a0be93fae6ea2a18df03ab2359a3f4b
NFSD: Update the NFSv2 READLINK argument decoder to use struct xdr_stream

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>
fs/nfsd/nfsproc.c
fs/nfsd/nfsxdr.c
fs/nfsd/xdr.h