Fix for commit de6b6207: initialize atime of I_NEW inodes to 0 so that the timestamps read from disk will always be more recent than the initial timestamp, and the atime in the I_NEW inode will be overridden.
Signed-off-by: Andreas Gruenbacher <agrue...@redhat.com> --- fs/gfs2/inode.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c index f8f114f..3675a2cb 100644 --- a/fs/gfs2/inode.c +++ b/fs/gfs2/inode.c @@ -191,8 +191,11 @@ struct inode *gfs2_inode_lookup(struct super_block *sb, unsigned int type, } gfs2_set_iop(inode); - unlock_new_inode(inode); + inode->i_atime.tv_sec = 0; + inode->i_atime.tv_nsec = 0; + + unlock_new_inode(inode); } return inode; -- 2.7.4