GIT: unionfs2-2.6.27.y: Unionfs: ensure cache coherency in unionfs_fsync/fasync

Erez Zadok ezk at fsl.cs.sunysb.edu
Thu Aug 12 23:16:49 EDT 2010


commit 3ef147f50c15cad428358882dbdc68d248aae4e3
Author: Erez_Zadok <ezk at cs.sunysb.edu>
Date:   Sun Jul 22 01:10:45 2007 -0400

    Unionfs: ensure cache coherency in unionfs_fsync/fasync
    
    Signed-off-by: Erez Zadok <ezk at cs.sunysb.edu>

diff --git a/fs/unionfs/file.c b/fs/unionfs/file.c
index d08ef8b..e9e63b7 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);


More information about the unionfs-cvs mailing list