aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/file.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@woody.linux-foundation.org>2007-02-21 16:02:17 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-02-21 16:02:17 -0500
commit9654640d0af8f2de40ff3807d3695109d3463f54 (patch)
treeab279cb78248152fe19d3d2a977f33f883abed40 /fs/cifs/file.c
parentb5bf28cde894b3bb3bd25c13a7647020562f9ea0 (diff)
parent004c46b9e588edf549a39c5db54e37ebd0b3b3ad (diff)
Merge master.kernel.org:/pub/scm/linux/kernel/git/sfrench/cifs-2.6
* master.kernel.org:/pub/scm/linux/kernel/git/sfrench/cifs-2.6: [CIFS] One line missing from previous commit [CIFS] mtime bounces from local to remote when cifs nocmtime i_flags overwritten [CIFS] fix &&/& typo in cifs_setattr()
Diffstat (limited to 'fs/cifs/file.c')
-rw-r--r--fs/cifs/file.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/cifs/file.c b/fs/cifs/file.c
index 07ff9351e9ee..a1265c9bfec0 100644
--- a/fs/cifs/file.c
+++ b/fs/cifs/file.c
@@ -1014,8 +1014,9 @@ static ssize_t cifs_write(struct file *file, const char *write_data,
1014 /* since the write may have blocked check these pointers again */ 1014 /* since the write may have blocked check these pointers again */
1015 if (file->f_path.dentry) { 1015 if (file->f_path.dentry) {
1016 if (file->f_path.dentry->d_inode) { 1016 if (file->f_path.dentry->d_inode) {
1017 file->f_path.dentry->d_inode->i_ctime = 1017/*BB We could make this contingent on superblock ATIME flag too */
1018 file->f_path.dentry->d_inode->i_mtime = CURRENT_TIME; 1018/* file->f_path.dentry->d_inode->i_ctime =
1019 file->f_path.dentry->d_inode->i_mtime = CURRENT_TIME;*/
1019 if (total_written > 0) { 1020 if (total_written > 0) {
1020 if (*poffset > file->f_path.dentry->d_inode->i_size) 1021 if (*poffset > file->f_path.dentry->d_inode->i_size)
1021 i_size_write(file->f_path.dentry->d_inode, 1022 i_size_write(file->f_path.dentry->d_inode,