Skip to content

Commit

Permalink
nfs42: decode_layoutstats does not need res parameter
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Peng Tao authored and Trond Myklebust committed Aug 26, 2015
1 parent 0762ed2 commit 19cf633
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions fs/nfs/nfs42xdr.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,7 @@ static int decode_seek(struct xdr_stream *xdr, struct nfs42_seek_res *res)
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);
}
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 19cf633

Please sign in to comment.