projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16c32b7
)
NFS: Allow files that are open for write to invalidate caches
author
Trond Myklebust
<Trond.Myklebust@netapp.com>
Fri, 28 Oct 2005 02:12:45 +0000
(22:12 -0400)
committer
Trond Myklebust
<Trond.Myklebust@netapp.com>
Fri, 28 Oct 2005 02:12:45 +0000
(22:12 -0400)
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/inode.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/nfs/inode.c
b/fs/nfs/inode.c
index 6b3156e1535082210b0be7f99f3b3d755caf4535..f2781ca42761c885a56ad2ea70effd4ca5f4599a 100644
(file)
--- 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;
}