From 86ca9ca85a88eb43f282a1cf1e6c16423996325d Mon Sep 17 00:00:00 2001 From: Erez_Zadok Date: Sun, 22 Jul 2007 01:10:45 -0400 Subject: [PATCH] Unionfs: ensure cache coherency in unionfs_fsync/fasync Signed-off-by: Erez Zadok --- fs/unionfs/file.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.43.0