Files
mirror_zfs/module/zfs
Tim Chase 84b0aac5fd Fix atime handling.
Previously, the atime-modifying vnops called ZFS_ACCESSTIME_STAMP()
followed by zfs_inode_update() to update the atime.  However, since atimes
are cached in the znode for delayed writing, the zfs_inode_update()
function would effectively ignore the cached atime by reading it from
the SA.

This commit moves the updating of the atime in the inode into
zfs_tstamp_update_setup() which is called by the ZFS_ACCESSTIME_STAMP()
macro and eliminates the call to zfs_inode_update() in the atime-modifying
vnops.

It's possible the same thing could have been done directly in
zfs_inode_update() but I wasn't sure that it was safe in all cases where
it is called.

The effect is that atime handling is as if "strictatime" were selected;
even if the filesystem is mounted with "relatime".

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #1949
2013-12-12 10:23:58 -08:00
..
2013-12-10 10:05:40 -08:00
2013-09-04 16:01:24 -07:00
2013-10-25 13:59:40 -07:00
2013-10-31 14:58:04 -07:00
2013-10-31 14:58:04 -07:00
2013-10-31 14:58:04 -07:00
2013-11-05 12:23:35 -08:00
2013-11-04 10:55:25 -08:00
2013-10-31 14:58:04 -07:00
2013-11-05 12:23:35 -08:00
2013-11-04 10:55:25 -08:00
2013-10-31 14:58:04 -07:00
2012-10-15 16:01:54 -07:00
2010-08-31 08:38:46 -07:00
2013-10-22 10:12:39 -07:00
2013-10-30 14:51:27 -07:00
2013-10-25 13:59:40 -07:00
2013-11-05 12:25:44 -08:00
2013-09-04 16:01:24 -07:00
2013-09-25 15:44:22 -07:00
2010-08-31 13:41:59 -07:00
2010-08-31 13:41:58 -07:00
2013-11-04 10:55:25 -08:00
2013-10-31 14:58:04 -07:00
2013-10-31 09:16:03 -07:00
2013-09-04 16:01:24 -07:00
2013-10-31 14:58:04 -07:00
2012-08-27 12:01:37 -07:00
2013-10-31 14:58:04 -07:00
2013-11-05 12:17:07 -08:00
2013-10-31 14:58:04 -07:00
2013-10-31 14:58:04 -07:00
2013-10-31 14:58:04 -07:00
2013-10-31 14:58:04 -07:00
2013-11-04 10:55:25 -08:00
2013-10-31 14:58:04 -07:00
2013-11-04 10:55:25 -08:00
2010-08-31 13:41:58 -07:00
2013-10-30 14:51:27 -07:00
2013-12-06 09:34:41 -08:00
2013-10-31 14:58:04 -07:00
2013-10-31 14:58:04 -07:00
2013-11-04 10:55:25 -08:00
2013-11-04 10:55:25 -08:00
2013-12-12 10:23:58 -08:00
2013-12-12 10:23:58 -08:00
2013-10-31 14:58:04 -07:00
2013-10-31 14:58:04 -07:00
2013-10-31 14:58:04 -07:00
2013-12-06 09:42:39 -08:00
2010-09-17 16:24:15 -07:00
2013-11-05 12:14:21 -08:00