diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-03-04 18:13:56 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-03-06 10:32:46 -0500 |
commit | 1e3987c3052a48fbfc8f5d30214c825eff41192d (patch) | |
tree | 7940587f55f176c6f0bc7c293834a376e6130037 /fs/nfs/nfs4proc.c | |
parent | ea9d23f51041036b5d5d062dae2fafe0f670449c (diff) |
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/nfs4proc.c')
-rw-r--r-- | fs/nfs/nfs4proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index b0647b387403..f181c70ea933 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c | |||
@@ -1922,7 +1922,7 @@ static int _nfs4_do_setattr(struct inode *inode, struct rpc_cred *cred, | |||
1922 | if (nfs4_copy_delegation_stateid(&arg.stateid, inode)) { | 1922 | if (nfs4_copy_delegation_stateid(&arg.stateid, inode)) { |
1923 | /* Use that stateid */ | 1923 | /* Use that stateid */ |
1924 | } else if (state != NULL) { | 1924 | } else if (state != NULL) { |
1925 | nfs4_copy_stateid(&arg.stateid, state, current->files, current->tgid); | 1925 | nfs4_select_rw_stateid(&arg.stateid, state, current->files, current->tgid); |
1926 | } else | 1926 | } else |
1927 | memcpy(&arg.stateid, &zero_stateid, sizeof(arg.stateid)); | 1927 | memcpy(&arg.stateid, &zero_stateid, sizeof(arg.stateid)); |
1928 | 1928 | ||