ext3: Don't update superblock write time when filesystem is read-only
authorTheodore Ts'o <tytso@mit.edu>
Wed, 16 Sep 2009 15:21:13 +0000 (11:21 -0400)
committerJan Kara <jack@suse.cz>
Mon, 12 Oct 2009 22:06:43 +0000 (00:06 +0200)
commit96ec2e0a719fd61791dd2b0dd01325c5d20e1233
treeb68be3b6d76ee13dbd80f4877c7b9e45b8926e02
parent2caa731819a633bec5a56736e64c562b7e193666
ext3: Don't update superblock write time when filesystem is read-only

This avoids updating the superblock write time when we are mounting
the root file system read/only but we need to replay the journal; at
that point, for people who are east of GMT and who make their clock
tick in localtime for Windows bug-for-bug compatibility, and this will
cause e2fsck to complain and force a full file system check.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/ext3/super.c