nfs42: decode_layoutstats does not need res parameter
authorPeng Tao <tao.peng@primarydata.com>
Tue, 25 Aug 2015 16:13:15 +0000 (00:13 +0800)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 26 Aug 2015 00:06:56 +0000 (20:06 -0400)
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>
fs/nfs/nfs42xdr.c

index a6bd27da6286f9fee14f0b087eddcc1ec437cdde..0eb29e14070d5890478eda0274814f007f3cf9c5 100644 (file)
@@ -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;
        }