Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Peng Tao and committed by
Trond Myklebust
19cf6335 0762ed2c

+2 -3
+2 -3
fs/nfs/nfs42xdr.c
··· 238 238 return -EIO; 239 239 } 240 240 241 - static int decode_layoutstats(struct xdr_stream *xdr, 242 - struct nfs42_layoutstat_res *res) 241 + static int decode_layoutstats(struct xdr_stream *xdr) 243 242 { 244 243 return decode_op_hdr(xdr, OP_LAYOUTSTATS); 245 244 } ··· 342 343 goto out; 343 344 WARN_ON(res->num_dev > PNFS_LAYOUTSTATS_MAXDEV); 344 345 for (i = 0; i < res->num_dev; i++) { 345 - status = decode_layoutstats(xdr, res); 346 + status = decode_layoutstats(xdr); 346 347 if (status) 347 348 goto out; 348 349 }