]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita846eae9e7eac7be978ab6bcd4192c1c78ca2619
tree9295a472e8d4040c9504f3c8b2b9d29207772cd4
parentdd40b411253c068218ea2300f678e01fb87905c2
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