GIT: unionfs2-2.6.27.y: mmap: read upper file instead of lower file
Erez Zadok
ezk at fsl.cs.sunysb.edu
Thu Aug 12 23:16:20 EDT 2010
commit 0dd2b281fcd742e1af334248468a54b88f0710fd
Author: Yiannis Pericleous <yiannos at louie.fsl.cs.sunysb.edu>
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 caf4f9d..28565a1 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);
@@ -55,10 +57,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));
+*/
#if 0
out:
More information about the unionfs-cvs
mailing list