From 108c9532c61baa80047687a386a0c29a40d06511 Mon Sep 17 00:00:00 2001 From: Erez Zadok Date: Mon, 26 Nov 2007 19:53:57 -0500 Subject: [PATCH] Unionfs: remove unnecessary lower atime updates 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 --- fs/unionfs/file.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/fs/unionfs/file.c b/fs/unionfs/file.c index ccf3dedb028..32749a3a265 100644 --- a/fs/unionfs/file.c +++ b/fs/unionfs/file.c @@ -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); -- 2.43.0