diff options
author | Peng Tao <tao.peng@primarydata.com> | 2015-08-26 00:13:15 +0800 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-08-25 20:06:56 -0400 |
commit | 19cf6335134d82be792831e14aae9d037d0cb30b (patch) | |
tree | 6c5280c4551900e3afb3b6cc99bde3b003ab7352 /fs/nfs | |
parent | 0762ed2ced40bfe648378ef0e1635cf4d3a6fb76 (diff) | |
download | op-kernel-dev-19cf6335134d82be792831e14aae9d037d0cb30b.zip op-kernel-dev-19cf6335134d82be792831e14aae9d037d0cb30b.tar.gz |
nfs42: decode_layoutstats does not need res parameter
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Peng Tao <tao.peng@primarydata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/nfs42xdr.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/nfs/nfs42xdr.c b/fs/nfs/nfs42xdr.c index a6bd27d..0eb29e1 100644 --- a/fs/nfs/nfs42xdr.c +++ b/fs/nfs/nfs42xdr.c @@ -238,8 +238,7 @@ out_overflow: return -EIO; } -static int decode_layoutstats(struct xdr_stream *xdr, - struct nfs42_layoutstat_res *res) +static int decode_layoutstats(struct xdr_stream *xdr) { return decode_op_hdr(xdr, OP_LAYOUTSTATS); } @@ -343,7 +342,7 @@ static int nfs4_xdr_dec_layoutstats(struct rpc_rqst *rqstp, goto out; WARN_ON(res->num_dev > PNFS_LAYOUTSTATS_MAXDEV); for (i = 0; i < res->num_dev; i++) { - status = decode_layoutstats(xdr, res); + status = decode_layoutstats(xdr); if (status) goto out; } |