commit dc2f054e29af08449d85130767963bdf45055455
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 c76c537..a86ac88 100644
--- a/fs/unionfs/file.c
+++ b/fs/unionfs/file.c
@@ -31,12 +31,14 @@ static ssize_t unionfs_read(struct file *file, char __user 
*buf,
        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 kiocb *iocb, const 
struct iovec *iov,
        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