]> err.no Git - linux-2.6/commitdiff
[XFS] 956664: dm_read_invis() changes i_atime
authorVlad Apostolov <vapo@sgi.com>
Sat, 11 Nov 2006 07:04:47 +0000 (18:04 +1100)
committerTim Shimmin <tes@sgi.com>
Sat, 11 Nov 2006 07:04:47 +0000 (18:04 +1100)
SGI-PV: 956664
SGI-Modid: xfs-linux-melb:xfs-kern:27315a

Signed-off-by: Vlad Apostolov <vapo@sgi.com>
Signed-off-by: Sam Vaughan <sjv@sgi.com>
Signed-off-by: Tim Shimmin <tes@sgi.com>
fs/xfs/linux-2.6/xfs_ioctl.c

index a74f854d91e6afe1d86ba2da278a733a5afa48e5..74d094829a4d5aaec02469ad6b1e4bfb643a1275 100644 (file)
@@ -341,8 +341,11 @@ xfs_open_by_handle(
                put_unused_fd(new_fd);
                return -XFS_ERROR(-PTR_ERR(filp));
        }
-       if (inode->i_mode & S_IFREG)
+       if (inode->i_mode & S_IFREG) {
+               /* invisible operation should not change atime */
+               filp->f_flags |= O_NOATIME;
                filp->f_op = &xfs_invis_file_operations;
+       }
 
        fd_install(new_fd, filp);
        return new_fd;