mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-01 10:42:11 +00:00
NFSD: Replace READ* macros in nfsd4_decode_release_lockowner()
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
This commit is contained in:
parent
244e2befcb
commit
a4a80c15ca
@ -1418,20 +1418,20 @@ nfsd4_decode_write(struct nfsd4_compoundargs *argp, struct nfsd4_write *write)
|
||||
static __be32
|
||||
nfsd4_decode_release_lockowner(struct nfsd4_compoundargs *argp, struct nfsd4_release_lockowner *rlockowner)
|
||||
{
|
||||
DECODE_HEAD;
|
||||
__be32 status;
|
||||
|
||||
if (argp->minorversion >= 1)
|
||||
return nfserr_notsupp;
|
||||
|
||||
READ_BUF(12);
|
||||
COPYMEM(&rlockowner->rl_clientid, sizeof(clientid_t));
|
||||
rlockowner->rl_owner.len = be32_to_cpup(p++);
|
||||
READ_BUF(rlockowner->rl_owner.len);
|
||||
READMEM(rlockowner->rl_owner.data, rlockowner->rl_owner.len);
|
||||
status = nfsd4_decode_state_owner4(argp, &rlockowner->rl_clientid,
|
||||
&rlockowner->rl_owner);
|
||||
if (status)
|
||||
return status;
|
||||
|
||||
if (argp->minorversion && !zero_clientid(&rlockowner->rl_clientid))
|
||||
return nfserr_inval;
|
||||
DECODE_TAIL;
|
||||
|
||||
return nfs_ok;
|
||||
}
|
||||
|
||||
static __be32
|
||||
|
Loading…
Reference in New Issue
Block a user