Unionfs: remove unnecessary lower atime updates
authorErez Zadok <ezk@cs.sunysb.edu>
Tue, 27 Nov 2007 00:53:57 +0000 (19:53 -0500)
committerErez Zadok <ezk@cs.sunysb.edu>
Tue, 27 Nov 2007 00:53:57 +0000 (19:53 -0500)
No need for this because our readpage calls vfs_read on the lower objects,
which would update the atime as/if needed.

Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/file.c

index ccf3dedb028f313a49c26e65b115534fd62c65bf..32749a3a2657c547f95940ad99e7ca081d199a93 100644 (file)
@@ -31,10 +31,6 @@ static ssize_t unionfs_read(struct file *file, char __user *buf,
 
        err = do_sync_read(file, buf, count, ppos);
 
-       if (err >= 0)
-               touch_atime(unionfs_lower_mnt(file->f_dentry),
-                           unionfs_lower_dentry(file->f_dentry));
-
 out:
        unionfs_read_unlock(file->f_dentry->d_sb);
        unionfs_check_file(file);
@@ -58,10 +54,6 @@ static ssize_t unionfs_aio_read(struct kiocb *iocb, char __user *iov,
        if (err == -EIOCBQUEUED)
                err = wait_on_sync_kiocb(iocb);
 
-       if (err >= 0)
-               touch_atime(unionfs_lower_mnt(file->f_dentry),
-                           unionfs_lower_dentry(file->f_dentry));
-
 out:
        unionfs_read_unlock(file->f_dentry->d_sb);
        unionfs_check_file(file);