NFSD: Add helper to set up the pages where the dirlist is encoded
authorChuck Lever <chuck.lever@oracle.com>
Tue, 17 Nov 2020 14:50:23 +0000 (09:50 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 25 Jan 2021 14:36:24 +0000 (09:36 -0500)
commit40116ebd0934cca7e46423bdb3397d3d27eb9fb9
treeaad59ba70746573f19f57a8373d5a241b03e7a0a
parent0a8f37fb34a96267c656f7254e69bb9a2fc89fe4
NFSD: Add helper to set up the pages where the dirlist is encoded

De-duplicate some code that is used by both READDIR and READDIRPLUS
to build the dirlist in the Reply. Because this code is not related
to decoding READ arguments, it is moved to a more appropriate spot.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfs3proc.c
fs/nfsd/nfs3xdr.c
fs/nfsd/xdr3.h