Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 332f51d7 authored by Andreas Gruenbacher's avatar Andreas Gruenbacher Committed by Bob Peterson
Browse files

gfs2: Initialize atime of I_NEW inodes



Fix for commit 719ee344: 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 set correctly.

Signed-off-by: default avatarAndreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: default avatarBob Peterson <rpeterso@redhat.com>
parent d7c436cd
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -187,6 +187,10 @@ struct inode *gfs2_inode_lookup(struct super_block *sb, unsigned int type,
		}

		gfs2_set_iop(inode);

		inode->i_atime.tv_sec = 0;
		inode->i_atime.tv_nsec = 0;

		unlock_new_inode(inode);
	}