summaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4proc.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2012-04-29 10:44:42 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-05-01 15:42:45 -0400
commit8582715e733d08bc98fe629db0601360d70de4dc (patch)
treedbdbe5b56dce73beffadc5178a0fe80165146028 /fs/nfs/nfs4proc.c
parent5a37f85131c526ed7a3991d4dc2845498f81c1de (diff)
downloadlinux-8582715e733d08bc98fe629db0601360d70de4dc.tar.gz
linux-8582715e733d08bc98fe629db0601360d70de4dc.tar.bz2
linux-8582715e733d08bc98fe629db0601360d70de4dc.zip
NFSv4: COMMIT does not need post-op attributes
No attributes are supposed to change during a COMMIT call, so there is no need to request post-op attributes. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4proc.c')
-rw-r--r--fs/nfs/nfs4proc.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index 64b67f353ed7..98eb48ddc25f 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -3462,7 +3462,6 @@ static int nfs4_commit_done_cb(struct rpc_task *task, struct nfs_commit_data *da
rpc_restart_call_prepare(task);
return -EAGAIN;
}
- nfs_refresh_inode(inode, data->res.fattr);
return 0;
}
@@ -3477,11 +3476,6 @@ static void nfs4_proc_commit_setup(struct nfs_commit_data *data, struct rpc_mess
{
struct nfs_server *server = NFS_SERVER(data->inode);
- if (data->lseg) {
- data->args.bitmask = NULL;
- data->res.fattr = NULL;
- } else
- data->args.bitmask = server->cache_consistency_bitmask;
if (data->commit_done_cb == NULL)
data->commit_done_cb = nfs4_commit_done_cb;
data->res.server = server;