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>
Sun, 24 Nov 2013 07:52:55 +0000 (02:52 -0500)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/file.c

index d08ef8ba3dc9d0b6de7580a1c1a0e1db9f898240..e9e63b78015e1fbe86f4ebff4df1241c1e5232e1 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);