summaryrefslogtreecommitdiff
path: root/fs/nfs
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2005-10-28 02:12:45 (GMT)
committerTrond Myklebust <Trond.Myklebust@netapp.com>2005-10-28 02:12:45 (GMT)
commitbec273b491bd16351a9cdb8e9a51d30afa7fe9f4 (patch)
tree76013e5926f02d476b47812eb4c49b5dff8264a3 /fs/nfs
parent16c32b71bc53d6f7143702ebb264b4ef20d8f1e5 (diff)
downloadlinux-fsl-qoriq-bec273b491bd16351a9cdb8e9a51d30afa7fe9f4.tar.xz
NFS: Allow files that are open for write to invalidate caches
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/inode.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c
index 6b3156e..f2781ca 100644
--- a/fs/nfs/inode.c
+++ b/fs/nfs/inode.c
@@ -1057,15 +1057,11 @@ int nfs_open(struct inode *inode, struct file *filp)
ctx->mode = filp->f_mode;
nfs_file_set_open_context(filp, ctx);
put_nfs_open_context(ctx);
- if ((filp->f_mode & FMODE_WRITE) != 0)
- nfs_begin_data_update(inode);
return 0;
}
int nfs_release(struct inode *inode, struct file *filp)
{
- if ((filp->f_mode & FMODE_WRITE) != 0)
- nfs_end_data_update(inode);
nfs_file_clear_open_context(filp);
return 0;
}