Skip to content

Commit

Permalink
NFSv4: Rename encode_stateid() to encode_open_stateid()
Browse files Browse the repository at this point in the history
The current version of encode_stateid really only applies to open stateids.
You can't use it for locks, delegations or layouts.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Mar 6, 2012
1 parent 36281ca commit d0b496d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fs/nfs/nfs4xdr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1528,7 +1528,7 @@ static void encode_putrootfh(struct xdr_stream *xdr, struct compound_hdr *hdr)
hdr->replen += decode_putrootfh_maxsz;
}

static void encode_stateid(struct xdr_stream *xdr, const struct nfs_open_context *ctx, const struct nfs_lock_context *l_ctx, int zero_seqid)
static void encode_open_stateid(struct xdr_stream *xdr, const struct nfs_open_context *ctx, const struct nfs_lock_context *l_ctx, int zero_seqid)
{
nfs4_stateid stateid;
__be32 *p;
Expand All @@ -1550,7 +1550,7 @@ static void encode_read(struct xdr_stream *xdr, const struct nfs_readargs *args,
p = reserve_space(xdr, 4);
*p = cpu_to_be32(OP_READ);

encode_stateid(xdr, args->context, args->lock_context,
encode_open_stateid(xdr, args->context, args->lock_context,
hdr->minorversion);

p = reserve_space(xdr, 12);
Expand Down Expand Up @@ -1739,7 +1739,7 @@ static void encode_write(struct xdr_stream *xdr, const struct nfs_writeargs *arg
p = reserve_space(xdr, 4);
*p = cpu_to_be32(OP_WRITE);

encode_stateid(xdr, args->context, args->lock_context,
encode_open_stateid(xdr, args->context, args->lock_context,
hdr->minorversion);

p = reserve_space(xdr, 16);
Expand Down

0 comments on commit d0b496d

Please sign in to comment.