diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-03-08 23:16:12 +0100 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-03-09 04:37:12 +0100 |
commit | 0032a7a749a49b2c044092a1d0af5cfd0077f35d (patch) | |
tree | b73ca09268f9b6f1c6b5c8bb9301b088a305830d /fs/nfs/nfs4proc.c | |
parent | NFSv4.1 cleanup DS stateid error handling (diff) | |
download | linux-0032a7a749a49b2c044092a1d0af5cfd0077f35d.tar.xz linux-0032a7a749a49b2c044092a1d0af5cfd0077f35d.zip |
NFS: Don't copy read delegation stateids in setattr
The server will just return an NFS4ERR_OPENMODE anyway.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to '')
-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 a8dd04db764f..3578ad36a5b8 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -1929,7 +1929,7 @@ static int _nfs4_do_setattr(struct inode *inode, struct rpc_cred *cred, nfs_fattr_init(fattr); - if (nfs4_copy_delegation_stateid(&arg.stateid, inode)) { + if (nfs4_copy_delegation_stateid(&arg.stateid, inode, FMODE_WRITE)) { /* Use that stateid */ } else if (state != NULL) { nfs4_select_rw_stateid(&arg.stateid, state, current->files, current->tgid); |