diff options
-rw-r--r-- | fs/nfs/inode.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c index 6b3156e15350..f2781ca42761 100644 --- a/fs/nfs/inode.c +++ b/fs/nfs/inode.c | |||
@@ -1057,15 +1057,11 @@ int nfs_open(struct inode *inode, struct file *filp) | |||
1057 | ctx->mode = filp->f_mode; | 1057 | ctx->mode = filp->f_mode; |
1058 | nfs_file_set_open_context(filp, ctx); | 1058 | nfs_file_set_open_context(filp, ctx); |
1059 | put_nfs_open_context(ctx); | 1059 | put_nfs_open_context(ctx); |
1060 | if ((filp->f_mode & FMODE_WRITE) != 0) | ||
1061 | nfs_begin_data_update(inode); | ||
1062 | return 0; | 1060 | return 0; |
1063 | } | 1061 | } |
1064 | 1062 | ||
1065 | int nfs_release(struct inode *inode, struct file *filp) | 1063 | int nfs_release(struct inode *inode, struct file *filp) |
1066 | { | 1064 | { |
1067 | if ((filp->f_mode & FMODE_WRITE) != 0) | ||
1068 | nfs_end_data_update(inode); | ||
1069 | nfs_file_clear_open_context(filp); | 1065 | nfs_file_clear_open_context(filp); |
1070 | return 0; | 1066 | return 0; |
1071 | } | 1067 | } |