diff options
author | Andreas Gruenbacher | 2017-09-22 15:34:46 +0200 |
---|---|---|
committer | Bob Peterson | 2017-09-25 19:33:19 +0200 |
commit | 38eedf2841b03b779710e8ad0442810a4747a348 (patch) | |
tree | 4ee6e4833767f5790c8d02116a7e3212af9bd6f3 /fs/orangefs/orangefs-mod.c | |
parent | gfs2: Update ctime in setflags ioctl (diff) | |
download | kernel-qcow2-linux-38eedf2841b03b779710e8ad0442810a4747a348.tar.gz kernel-qcow2-linux-38eedf2841b03b779710e8ad0442810a4747a348.tar.xz kernel-qcow2-linux-38eedf2841b03b779710e8ad0442810a4747a348.zip |
gfs2: Support negative atimes
When inodes are read from disk, GFS2 will only update in-memory atimes
older than the on-disk atimes; this prevents atimes from going
backwards. The atimes of newly allocated inodes are initialized to 0.
This means that when an atime is explicitly set to a negative value,
this value will not persist.
Fix by setting the atime of newly allocated inodes to the lowest
possible value instead of 0.
Fixes xfstest generic/258.
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Diffstat (limited to 'fs/orangefs/orangefs-mod.c')
0 files changed, 0 insertions, 0 deletions