Unionfs: ensure cache coherency in unionfs_fsync/fasync
authorErez_Zadok <ezk@cs.sunysb.edu>
Sun, 22 Jul 2007 05:10:45 +0000 (01:10 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Thu, 18 Oct 2007 18:11:09 +0000 (14:11 -0400)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/file.c

index cd2ff9e21eca015e2860043141a897230befee12..3f6b2d053ceb9705c98c7bb152ca11d37b3b3304 100644 (file)
@@ -179,6 +179,8 @@ int unionfs_fsync(struct file *file, struct dentry *dentry, int datasync)
                        goto out;
        }
 
+       unionfs_copy_attr_times(inode);
+
 out:
        unionfs_read_unlock(file->f_path.dentry->d_sb);
        unionfs_check_file(file);
@@ -222,6 +224,8 @@ int unionfs_fasync(int fd, struct file *file, int flag)
                        goto out;
        }
 
+       unionfs_copy_attr_times(inode);
+
 out:
        unionfs_read_unlock(file->f_path.dentry->d_sb);
        unionfs_check_file(file);