From: Erez_Zadok Date: Sun, 22 Jul 2007 05:10:45 +0000 (-0400) Subject: Unionfs: ensure cache coherency in unionfs_fsync/fasync X-Git-Url: https://git.fsl.cs.sunysb.edu/?a=commitdiff_plain;h=df87635023ab66578c2a978dd3d6172d33893b09;p=unionfs-3.17.y.git Unionfs: ensure cache coherency in unionfs_fsync/fasync Signed-off-by: Erez Zadok --- diff --git a/fs/unionfs/file.c b/fs/unionfs/file.c index d08ef8ba3dc9..e9e63b78015e 100644 --- a/fs/unionfs/file.c +++ b/fs/unionfs/file.c @@ -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);