summaryrefslogtreecommitdiff
path: root/fs/nfs/nfs4xdr.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2012-03-05 03:13:56 +0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-03-06 19:32:46 +0400
commit1e3987c3052a48fbfc8f5d30214c825eff41192d (patch)
tree7940587f55f176c6f0bc7c293834a376e6130037 /fs/nfs/nfs4xdr.c
parentea9d23f51041036b5d5d062dae2fafe0f670449c (diff)
downloadlinux-1e3987c3052a48fbfc8f5d30214c825eff41192d.tar.xz
NFSv4: Rename nfs4_copy_stateid()
It is really a function for selecting the correct stateid to use in a read or write situation. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4xdr.c')
-rw-r--r--fs/nfs/nfs4xdr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs4xdr.c b/fs/nfs/nfs4xdr.c
index c03ba77679ad..38736dca1b18 100644
--- a/fs/nfs/nfs4xdr.c
+++ b/fs/nfs/nfs4xdr.c
@@ -1546,7 +1546,7 @@ static void encode_open_stateid(struct xdr_stream *xdr, const struct nfs_open_co
nfs4_stateid stateid;
if (ctx->state != NULL) {
- nfs4_copy_stateid(&stateid, ctx->state, l_ctx->lockowner, l_ctx->pid);
+ nfs4_select_rw_stateid(&stateid, ctx->state, l_ctx->lockowner, l_ctx->pid);
if (zero_seqid)
stateid.stateid.seqid = 0;
encode_nfs4_stateid(xdr, &stateid);