summaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs3proc.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2007-10-08 20:10:31 +0200
committerTrond Myklebust <Trond.Myklebust@netapp.com>2007-10-09 23:20:45 +0200
commit9e08a3c5aec5b745e844328bcbc16458b6118faf (patch)
tree0715485e16ddee34478cdf1ac8432944f6cc354e /fs/nfs/nfs3proc.c
parentSUNRPC: Don't call xprt_release in call refresh (diff)
downloadlinux-9e08a3c5aec5b745e844328bcbc16458b6118faf.tar.xz
linux-9e08a3c5aec5b745e844328bcbc16458b6118faf.zip
NFS: Use nfs_refresh_inode() in ops that aren't expected to change the inode
nfs_post_op_update_inode() is really only meant to be used if we expect the inode and its attributes to have changed in some way. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs3proc.c')
-rw-r--r--fs/nfs/nfs3proc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/nfs/nfs3proc.c b/fs/nfs/nfs3proc.c
index 6e05f6c9c910..4cdc2361a669 100644
--- a/fs/nfs/nfs3proc.c
+++ b/fs/nfs/nfs3proc.c
@@ -777,8 +777,7 @@ static int nfs3_commit_done(struct rpc_task *task, struct nfs_write_data *data)
{
if (nfs3_async_handle_jukebox(task, data->inode))
return -EAGAIN;
- if (task->tk_status >= 0)
- nfs_post_op_update_inode(data->inode, data->res.fattr);
+ nfs_refresh_inode(data->inode, data->res.fattr);
return 0;
}