NFSD: Replace READ* macros in nfsd4_decode_seek()
[ Upstream commit 9d32b412fe0a6186cc57789d218e8f8299454ae2 ] Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
a63486680c
commit
64d6f85ff2
1 changed files with 7 additions and 7 deletions
|
@ -2054,17 +2054,17 @@ nfsd4_decode_offload_status(struct nfsd4_compoundargs *argp,
|
||||||
static __be32
|
static __be32
|
||||||
nfsd4_decode_seek(struct nfsd4_compoundargs *argp, struct nfsd4_seek *seek)
|
nfsd4_decode_seek(struct nfsd4_compoundargs *argp, struct nfsd4_seek *seek)
|
||||||
{
|
{
|
||||||
DECODE_HEAD;
|
__be32 status;
|
||||||
|
|
||||||
status = nfsd4_decode_stateid(argp, &seek->seek_stateid);
|
status = nfsd4_decode_stateid4(argp, &seek->seek_stateid);
|
||||||
if (status)
|
if (status)
|
||||||
return status;
|
return status;
|
||||||
|
if (xdr_stream_decode_u64(argp->xdr, &seek->seek_offset) < 0)
|
||||||
|
return nfserr_bad_xdr;
|
||||||
|
if (xdr_stream_decode_u32(argp->xdr, &seek->seek_whence) < 0)
|
||||||
|
return nfserr_bad_xdr;
|
||||||
|
|
||||||
READ_BUF(8 + 4);
|
return nfs_ok;
|
||||||
p = xdr_decode_hyper(p, &seek->seek_offset);
|
|
||||||
seek->seek_whence = be32_to_cpup(p);
|
|
||||||
|
|
||||||
DECODE_TAIL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Reference in a new issue