[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>

authored by Vlad Apostolov and committed by Tim Shimmin 2e2e7bb1 70a50528

+4 -1
+4 -1
fs/xfs/linux-2.6/xfs_ioctl.c
··· 341 341 put_unused_fd(new_fd); 342 342 return -XFS_ERROR(-PTR_ERR(filp)); 343 343 } 344 - if (inode->i_mode & S_IFREG) 344 + if (inode->i_mode & S_IFREG) { 345 + /* invisible operation should not change atime */ 346 + filp->f_flags |= O_NOATIME; 345 347 filp->f_op = &xfs_invis_file_operations; 348 + } 346 349 347 350 fd_install(new_fd, filp); 348 351 return new_fd;