NFSD: Replace READ* macros in nfsd4_decode_open_confirm()
[ Upstream commit 06bee693a1f1cb774b91000f05a6e183c257d8e9 ] Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
b53ba0c2da
commit
43e2862be3
1 changed files with 5 additions and 5 deletions
|
@ -1155,18 +1155,18 @@ nfsd4_decode_open(struct nfsd4_compoundargs *argp, struct nfsd4_open *open)
|
||||||
static __be32
|
static __be32
|
||||||
nfsd4_decode_open_confirm(struct nfsd4_compoundargs *argp, struct nfsd4_open_confirm *open_conf)
|
nfsd4_decode_open_confirm(struct nfsd4_compoundargs *argp, struct nfsd4_open_confirm *open_conf)
|
||||||
{
|
{
|
||||||
DECODE_HEAD;
|
__be32 status;
|
||||||
|
|
||||||
if (argp->minorversion >= 1)
|
if (argp->minorversion >= 1)
|
||||||
return nfserr_notsupp;
|
return nfserr_notsupp;
|
||||||
|
|
||||||
status = nfsd4_decode_stateid(argp, &open_conf->oc_req_stateid);
|
status = nfsd4_decode_stateid4(argp, &open_conf->oc_req_stateid);
|
||||||
if (status)
|
if (status)
|
||||||
return status;
|
return status;
|
||||||
READ_BUF(4);
|
if (xdr_stream_decode_u32(argp->xdr, &open_conf->oc_seqid) < 0)
|
||||||
open_conf->oc_seqid = be32_to_cpup(p++);
|
return nfserr_bad_xdr;
|
||||||
|
|
||||||
DECODE_TAIL;
|
return nfs_ok;
|
||||||
}
|
}
|
||||||
|
|
||||||
static __be32
|
static __be32
|
||||||
|
|
Loading…
Add table
Reference in a new issue