mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 00:48:50 +00:00
NFSv4: Clean up encode_nfs4_stateid()
Ensure that we encode the actual stateid, and not any metadata. Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com> Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
This commit is contained in:
parent
924cf3c91f
commit
5d2db0898a
1 changed files with 3 additions and 2 deletions
|
@ -1067,9 +1067,10 @@ static void encode_nops(struct compound_hdr *hdr)
|
|||
*hdr->nops_p = htonl(hdr->nops);
|
||||
}
|
||||
|
||||
static void encode_nfs4_stateid(struct xdr_stream *xdr, const nfs4_stateid *stateid)
|
||||
static void encode_nfs4_stateid(struct xdr_stream *xdr,
|
||||
const nfs4_stateid *stateid)
|
||||
{
|
||||
encode_opaque_fixed(xdr, stateid, NFS4_STATEID_SIZE);
|
||||
encode_opaque_fixed(xdr, stateid->data, NFS4_STATEID_SIZE);
|
||||
}
|
||||
|
||||
static void encode_nfs4_verifier(struct xdr_stream *xdr, const nfs4_verifier *verf)
|
||||
|
|
Loading…
Reference in a new issue