NFSD: Replace READ* macros in nfsd4_decode_fallocate()
[ Upstream commit 6aef27aaeae7611f98af08205acc79f5a8f3aa59 ] Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
01d7b4526e
commit
c9f85bc6fc
1 changed files with 7 additions and 7 deletions
|
@ -1906,17 +1906,17 @@ static __be32
|
||||||
nfsd4_decode_fallocate(struct nfsd4_compoundargs *argp,
|
nfsd4_decode_fallocate(struct nfsd4_compoundargs *argp,
|
||||||
struct nfsd4_fallocate *fallocate)
|
struct nfsd4_fallocate *fallocate)
|
||||||
{
|
{
|
||||||
DECODE_HEAD;
|
__be32 status;
|
||||||
|
|
||||||
status = nfsd4_decode_stateid(argp, &fallocate->falloc_stateid);
|
status = nfsd4_decode_stateid4(argp, &fallocate->falloc_stateid);
|
||||||
if (status)
|
if (status)
|
||||||
return status;
|
return status;
|
||||||
|
if (xdr_stream_decode_u64(argp->xdr, &fallocate->falloc_offset) < 0)
|
||||||
|
return nfserr_bad_xdr;
|
||||||
|
if (xdr_stream_decode_u64(argp->xdr, &fallocate->falloc_length) < 0)
|
||||||
|
return nfserr_bad_xdr;
|
||||||
|
|
||||||
READ_BUF(16);
|
return nfs_ok;
|
||||||
p = xdr_decode_hyper(p, &fallocate->falloc_offset);
|
|
||||||
xdr_decode_hyper(p, &fallocate->falloc_length);
|
|
||||||
|
|
||||||
DECODE_TAIL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static __be32
|
static __be32
|
||||||
|
|
Loading…
Add table
Reference in a new issue