diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2020-11-17 17:32:04 +0100 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2021-01-25 15:36:26 +0100 |
commit | 635a45d34706400c59c3b18ca9fccba195147bda (patch) | |
tree | de862df08a3f509bffa9c982bb67a09a0575bebf /fs/nfsd/nfsxdr.c | |
parent | NFSD: Remove argument length checking in nfsd_dispatch() (diff) | |
download | linux-635a45d34706400c59c3b18ca9fccba195147bda.tar.xz linux-635a45d34706400c59c3b18ca9fccba195147bda.zip |
NFSD: Update the NFSv2 GETACL argument decoder to use struct xdr_stream
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'fs/nfsd/nfsxdr.c')
-rw-r--r-- | fs/nfsd/nfsxdr.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/fs/nfsd/nfsxdr.c b/fs/nfsd/nfsxdr.c index f2cb4794aeaf..5ab9fc14816c 100644 --- a/fs/nfsd/nfsxdr.c +++ b/fs/nfsd/nfsxdr.c @@ -38,7 +38,16 @@ decode_fh(__be32 *p, struct svc_fh *fhp) return p + (NFS_FHSIZE >> 2); } -static bool +/** + * svcxdr_decode_fhandle - Decode an NFSv2 file handle + * @xdr: XDR stream positioned at an encoded NFSv2 FH + * @fhp: OUT: filled-in server file handle + * + * Return values: + * %false: The encoded file handle was not valid + * %true: @fhp has been initialized + */ +bool svcxdr_decode_fhandle(struct xdr_stream *xdr, struct svc_fh *fhp) { __be32 *p; |