Commit 1f121e2d authored by Chuck Lever's avatar Chuck Lever

NFSD: Clean up nfsd4_encode_seek()

Use modern XDR encoder utilities.
Reviewed-by: default avatarJeff Layton <jlayton@kernel.org>
Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
parent b609ad60
......@@ -5279,13 +5279,14 @@ nfsd4_encode_seek(struct nfsd4_compoundres *resp, __be32 nfserr,
union nfsd4_op_u *u)
{
struct nfsd4_seek *seek = &u->seek;
__be32 *p;
p = xdr_reserve_space(resp->xdr, 4 + 8);
*p++ = cpu_to_be32(seek->seek_eof);
p = xdr_encode_hyper(p, seek->seek_pos);
struct xdr_stream *xdr = resp->xdr;
return 0;
/* sr_eof */
nfserr = nfsd4_encode_bool(xdr, seek->seek_eof);
if (nfserr != nfs_ok)
return nfserr;
/* sr_offset */
return nfsd4_encode_offset4(xdr, seek->seek_pos);
}
static __be32
......
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