NFSD: Refactor common code out of dirlist helpers
authorChuck Lever <chuck.lever@oracle.com>
Mon, 12 Sep 2022 21:22:56 +0000 (17:22 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 26 Sep 2022 18:02:47 +0000 (14:02 -0400)
commit98124f5bd6c76699d514fbe491dd95265369cc99
treed019af3d7a38db0948b97ea94a215ca1eee84f35
parentf18d8afbf2fae507fb7246f09fe1de5297c9f11a
NFSD: Refactor common code out of dirlist helpers

The dust has settled a bit and it's become obvious what code is
totally common between nfsd_init_dirlist_pages() and
nfsd3_init_dirlist_pages(). Move that common code to SUNRPC.

The new helper brackets the existing xdr_init_decode_pages() API.

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