Commit da2e8127 authored by Trond Myklebust's avatar Trond Myklebust

NFSv4.2: Fix up a decoding error in layoutstats

According to the spec, the server is only returning the status,
which we decode in the op header.
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
parent d6208769
...@@ -241,23 +241,7 @@ static int decode_seek(struct xdr_stream *xdr, struct nfs42_seek_res *res) ...@@ -241,23 +241,7 @@ static int decode_seek(struct xdr_stream *xdr, struct nfs42_seek_res *res)
static int decode_layoutstats(struct xdr_stream *xdr, static int decode_layoutstats(struct xdr_stream *xdr,
struct nfs42_layoutstat_res *res) struct nfs42_layoutstat_res *res)
{ {
int status; return decode_op_hdr(xdr, OP_LAYOUTSTATS);
__be32 *p;
status = decode_op_hdr(xdr, OP_LAYOUTSTATS);
if (status)
return status;
p = xdr_inline_decode(xdr, 4);
if (unlikely(!p))
goto out_overflow;
res->rpc_status = be32_to_cpup(p++);
return 0;
out_overflow:
print_overflow_msg(__func__, xdr);
return -EIO;
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment