NFSD: Replace READ* macros in nfsd4_decode_remove()
[ Upstream commit b7f5fbf219aecda98e32de305551e445f9438899 ] Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
d13a153e28
commit
28de5567a6
1 changed files with 1 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue