]> git.ipfire.org Git - thirdparty/linux.git/commit
sunrpc: simplify xdr_init_encode_pages
authorChristoph Hellwig <hch@lst.de>
Thu, 15 May 2025 11:48:45 +0000 (13:48 +0200)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 14 Jul 2025 16:46:37 +0000 (12:46 -0400)
commit8d43417e93073699b521f603286140415b24968b
treeae9e5b9da822f3a45e76a8a58bb2fd370684bde2
parent3b8737ce5bd4a9fcfede7d966f824e321d9066d4
sunrpc: simplify xdr_init_encode_pages

The rqst argument to xdr_init_encode_pages is set to NULL by all callers,
and pages is always set to buf->pages.  Remove the two arguments and
hardcode the assignments.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfs3proc.c
fs/nfsd/nfsproc.c
include/linux/sunrpc/xdr.h
net/sunrpc/xdr.c