NFSD: Replace READ* macros in nfsd4_decode_link()
[ Upstream commit 5c505d128691c70991b766dd6a3faf49fa59ecfb ] Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
77de29c527
commit
5e006a8128
1 changed files with 1 additions and 10 deletions
|
@ -779,16 +779,7 @@ nfsd4_decode_getattr(struct nfsd4_compoundargs *argp, struct nfsd4_getattr *geta
|
||||||
static __be32
|
static __be32
|
||||||
nfsd4_decode_link(struct nfsd4_compoundargs *argp, struct nfsd4_link *link)
|
nfsd4_decode_link(struct nfsd4_compoundargs *argp, struct nfsd4_link *link)
|
||||||
{
|
{
|
||||||
DECODE_HEAD;
|
return nfsd4_decode_component4(argp, &link->li_name, &link->li_namelen);
|
||||||
|
|
||||||
READ_BUF(4);
|
|
||||||
link->li_namelen = be32_to_cpup(p++);
|
|
||||||
READ_BUF(link->li_namelen);
|
|
||||||
SAVEMEM(link->li_name, link->li_namelen);
|
|
||||||
if ((status = check_filename(link->li_name, link->li_namelen)))
|
|
||||||
return status;
|
|
||||||
|
|
||||||
DECODE_TAIL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static __be32
|
static __be32
|
||||||
|
|
Loading…
Add table
Reference in a new issue