summaryrefslogtreecommitdiffstats
path: root/fs/xfs
diff options
context:
space:
mode:
authorVlad Apostolov <vapo@sgi.com>2006-11-11 18:04:47 +1100
committerTim Shimmin <tes@sgi.com>2006-11-11 18:04:47 +1100
commit2e2e7bb1fd857b9fc83b0cd77b6b647ebb423301 (patch)
tree7394ea035cc0ee1528a9b701a497e28858427479 /fs/xfs
parent70a505285f9859f77e07f7c12371b0d29ecf3d82 (diff)
downloadop-kernel-dev-2e2e7bb1fd857b9fc83b0cd77b6b647ebb423301.zip
op-kernel-dev-2e2e7bb1fd857b9fc83b0cd77b6b647ebb423301.tar.gz
[XFS] 956664: dm_read_invis() changes i_atime
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>
Diffstat (limited to 'fs/xfs')
-rw-r--r--fs/xfs/linux-2.6/xfs_ioctl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/xfs/linux-2.6/xfs_ioctl.c b/fs/xfs/linux-2.6/xfs_ioctl.c
index a74f854..74d09482 100644
--- a/fs/xfs/linux-2.6/xfs_ioctl.c
+++ b/fs/xfs/linux-2.6/xfs_ioctl.c
@@ -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;
OpenPOWER on IntegriCloud