mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-28 22:54:05 +08:00
NFSD: Replace READ* macros in nfsd4_decode_reclaim_complete()
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
This commit is contained in:
parent
c95f2ec349
commit
0d6467844d
@ -1738,16 +1738,6 @@ nfsd4_decode_free_stateid(struct nfsd4_compoundargs *argp,
|
|||||||
return nfsd4_decode_stateid4(argp, &free_stateid->fr_stateid);
|
return nfsd4_decode_stateid4(argp, &free_stateid->fr_stateid);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __be32 nfsd4_decode_reclaim_complete(struct nfsd4_compoundargs *argp, struct nfsd4_reclaim_complete *rc)
|
|
||||||
{
|
|
||||||
DECODE_HEAD;
|
|
||||||
|
|
||||||
READ_BUF(4);
|
|
||||||
rc->rca_one_fs = be32_to_cpup(p++);
|
|
||||||
|
|
||||||
DECODE_TAIL;
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef CONFIG_NFSD_PNFS
|
#ifdef CONFIG_NFSD_PNFS
|
||||||
static __be32
|
static __be32
|
||||||
nfsd4_decode_getdeviceinfo(struct nfsd4_compoundargs *argp,
|
nfsd4_decode_getdeviceinfo(struct nfsd4_compoundargs *argp,
|
||||||
@ -1904,6 +1894,14 @@ static __be32 nfsd4_decode_destroy_clientid(struct nfsd4_compoundargs *argp,
|
|||||||
return nfsd4_decode_clientid4(argp, &dc->clientid);
|
return nfsd4_decode_clientid4(argp, &dc->clientid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static __be32 nfsd4_decode_reclaim_complete(struct nfsd4_compoundargs *argp,
|
||||||
|
struct nfsd4_reclaim_complete *rc)
|
||||||
|
{
|
||||||
|
if (xdr_stream_decode_bool(argp->xdr, &rc->rca_one_fs) < 0)
|
||||||
|
return nfserr_bad_xdr;
|
||||||
|
return nfs_ok;
|
||||||
|
}
|
||||||
|
|
||||||
static __be32
|
static __be32
|
||||||
nfsd4_decode_fallocate(struct nfsd4_compoundargs *argp,
|
nfsd4_decode_fallocate(struct nfsd4_compoundargs *argp,
|
||||||
struct nfsd4_fallocate *fallocate)
|
struct nfsd4_fallocate *fallocate)
|
||||||
|
Loading…
Reference in New Issue
Block a user