xfs: fix bad_features2 fixups for the root filesystem
authorChristoph Hellwig <hch@lst.de>
Mon, 19 Jan 2009 01:04:07 +0000 (02:04 +0100)
committerLachlan McIlroy <lachlan@sgi.com>
Mon, 19 Jan 2009 03:45:04 +0000 (14:45 +1100)
commit49739140e57a65114d9e1976c4c158d2145595fb
tree9295a472e8d4040c9504f3c8b2b9d29207772cd4
parent5aa2dc0a0697c762874241fa9ddbecd2d878b934
xfs: fix bad_features2 fixups for the root filesystem

Currently the bad_features2 fixup and the alignment updates in the superblock
are skipped if we mount a filesystem read-only.  But for the root filesystem
the typical case is to mount read-only first and only later remount writeable
so we'll never perform this update at all.  It's not a big problem but means
the logs of people needing the fixup get spammed at every boot because they
never happen on disk.

Reported-by: Arkadiusz Miskiewicz <arekm@maven.pl>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <david@fromorbit.com>
fs/xfs/linux-2.6/xfs_super.c
fs/xfs/xfs_mount.c
fs/xfs/xfs_mount.h