diff options
author | 2020-11-04 15:04:36 -0500 | |
---|---|---|
committer | 2020-11-30 14:46:39 -0500 | |
commit | b7f5fbf219aecda98e32de305551e445f9438899 (patch) | |
tree | 0df587466a10e96177fb97f6d52714e6c44f3479 /fs | |
parent | NFSD: Replace READ* macros in nfsd4_decode_readdir() (diff) | |
download | linux-b7f5fbf219aecda98e32de305551e445f9438899.tar.gz linux-b7f5fbf219aecda98e32de305551e445f9438899.tar.bz2 linux-b7f5fbf219aecda98e32de305551e445f9438899.zip |
NFSD: Replace READ* macros in nfsd4_decode_remove()
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/nfsd/nfs4xdr.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c index 3c0100a6f35f..71409a70ef08 100644 --- a/fs/nfsd/nfs4xdr.c +++ b/fs/nfsd/nfs4xdr.c @@ -1255,16 +1255,7 @@ nfsd4_decode_readdir(struct nfsd4_compoundargs *argp, struct nfsd4_readdir *read static __be32 nfsd4_decode_remove(struct nfsd4_compoundargs *argp, struct nfsd4_remove *remove) { - DECODE_HEAD; - - READ_BUF(4); - remove->rm_namelen = be32_to_cpup(p++); - READ_BUF(remove->rm_namelen); - SAVEMEM(remove->rm_name, remove->rm_namelen); - if ((status = check_filename(remove->rm_name, remove->rm_namelen))) - return status; - - DECODE_TAIL; + return nfsd4_decode_component4(argp, &remove->rm_name, &remove->rm_namelen); } static __be32 |