commit ac154aaf31cfb058e146ccb55f432fbfe5cbd3a1
Author: Yiannis Pericleous <[EMAIL PROTECTED]>
Date: Tue May 1 19:11:53 2007 -0400
mmap: #if 0 unneeded code instead of commenting it out
diff --git a/fs/unionfs/file.c b/fs/unionfs/file.c
index
a86ac88b5e1eb40898c3d42846245556589afdb4..c30dd8adb8f0fd7725fe0e45c7845084b9581ba1
100644
--- a/fs/unionfs/file.c
+++ b/fs/unionfs/file.c
@@ -33,12 +33,12 @@ static ssize_t unionfs_read(struct file
err = do_sync_read(file, buf, count, ppos);
-/*
+#if 0
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));
-*/
+#endif
out:
unionfs_read_unlock(file->f_dentry->d_sb);
@@ -48,7 +48,6 @@ out:
static ssize_t unionfs_aio_read(struct kiocb *iocb, const struct iovec *iov,
unsigned long nr_segs, loff_t pos)
{
- struct file *file = iocb->ki_filp;
int err;
err = generic_file_aio_read(iocb, iov, nr_segs, pos);
@@ -56,11 +55,12 @@ static ssize_t unionfs_aio_read(struct k
if (err == -EIOCBQUEUED)
err = wait_on_sync_kiocb(iocb);
-/* XXX: is this needed?
+#if 0
+ XXX: is this needed?
if (err >= 0)
- touch_atime(unionfs_lower_mnt(file->f_path.dentry),
- unionfs_lower_dentry(file->f_path.dentry));
-*/
+ touch_atime(unionfs_lower_mnt(iocb->ki_filp->f_path.dentry),
+
unionfs_lower_dentry(iocb->ki_filp->f_path.dentry));
+#endif
return err;
}
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs