commit 0baa55ec3d24295e1a8e09d15d9e3dedac9ff5c7
Author: Yiannis Pericleous <[EMAIL PROTECTED]>
Date:   Tue May 1 15:18:39 2007 -0400

    mmap: read upper file instead of lower file
    dont touch atimes on reads

diff --git a/fs/unionfs/file.c b/fs/unionfs/file.c
index 
c76c53757ddf366eb52c83a00010d877cdbdfd21..a86ac88b5e1eb40898c3d42846245556589afdb4
 100644
--- a/fs/unionfs/file.c
+++ b/fs/unionfs/file.c
@@ -31,12 +31,14 @@ static ssize_t unionfs_read(struct file 
        if ((err = unionfs_file_revalidate(file, 0)))
                goto out;
 
-       err = do_sync_read(unionfs_lower_file(file), buf, count, ppos);
+       err = do_sync_read(file, buf, count, ppos);
 
-       /* FIXME: why? */
+/*
+       FIXME: do_sync_read updates a time
        if (err >= 0)
                touch_atime(unionfs_lower_mnt(file->f_path.dentry),
                                unionfs_lower_dentry(file->f_path.dentry));
+*/
 
 out:
        unionfs_read_unlock(file->f_dentry->d_sb);
@@ -54,10 +56,11 @@ static ssize_t unionfs_aio_read(struct k
        if (err == -EIOCBQUEUED)
                err = wait_on_sync_kiocb(iocb);
 
-       /* FIXME: why? */
+/*     XXX: is this needed?
        if (err >= 0)
                touch_atime(unionfs_lower_mnt(file->f_path.dentry),
                                unionfs_lower_dentry(file->f_path.dentry));
+*/
 
        return err;
 }
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs

Reply via email to