diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2020-11-10 09:57:14 -0500 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2021-03-22 10:18:55 -0400 |
commit | a161e6c76aeba835e475a2f27dbbe5c37e565e94 (patch) | |
tree | 7cceba50ef0c175dca424b5429cf783d6eeec171 /fs/nfsd/xdr3.h | |
parent | 5ef2826c761079e27904c85034df34e601b82d94 (diff) | |
download | lwn-a161e6c76aeba835e475a2f27dbbe5c37e565e94.tar.gz lwn-a161e6c76aeba835e475a2f27dbbe5c37e565e94.zip |
NFSD: Add a helper that encodes NFSv3 directory offset cookies
Refactor: De-duplicate identical code that handles encoding of
directory offset cookies across page boundaries.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'fs/nfsd/xdr3.h')
-rw-r--r-- | fs/nfsd/xdr3.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfsd/xdr3.h b/fs/nfsd/xdr3.h index 8073350418ae..e76e9230827e 100644 --- a/fs/nfsd/xdr3.h +++ b/fs/nfsd/xdr3.h @@ -300,6 +300,8 @@ int nfs3svc_encode_commitres(struct svc_rqst *, __be32 *); void nfs3svc_release_fhandle(struct svc_rqst *); void nfs3svc_release_fhandle2(struct svc_rqst *); + +void nfs3svc_encode_cookie3(struct nfsd3_readdirres *resp, u64 offset); int nfs3svc_encode_entry(void *, const char *name, int namlen, loff_t offset, u64 ino, unsigned int); |