NFSD: Refactor common code out of dirlist helpers

[ Upstream commit 98124f5bd6 ]

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>
This commit is contained in:
Chuck Lever 2022-09-12 17:22:56 -04:00 • committed by Greg Kroah-Hartman
commit cab5399262
4 changed files with 26 additions and 18 deletions