xfs: fix bad_features2 fixups for the root filesystem
commit7884bc8617e6b8afda8cb8853cf14abfd3148d5c
authorChristoph Hellwig <hch@lst.de>
Mon, 19 Jan 2009 01:04:07 +0000 (19 02:04 +0100)
committerChristoph Hellwig <hch@brick.lst.de>
Mon, 19 Jan 2009 01:04:07 +0000 (19 02:04 +0100)
treeeccabfabb65cfc06402f4c23f813bf84b500b5a3
parent98b8c7a0c42acf0d6963dbb9aabe4a2e312aae12
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