]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[XFS] Ensure "both" features2 slots are consistent
authorEric Sandeen <sandeen@sandeen.net>
Thu, 10 Apr 2008 02:19:34 +0000 (12:19 +1000)
committerLachlan McIlroy <lachlan@redback.melbourne.sgi.com>
Thu, 10 Apr 2008 06:25:26 +0000 (16:25 +1000)
commite6957ea48429aeda4f5d51af4238231d44b0dc4a
tree860c95c0e9446191262bb44ad436d38afb8cb7d6
parentee1c090825bf2f1cb9712489c234eabf69a9a78f
[XFS] Ensure "both" features2 slots are consistent

Since older kernels may look in the sb_bad_features2 slot for flags,
rather than zeroing it out on fixup, we should make it equal to the
sb_features2 value.

Also, if the ATTR2 flag was not found prior to features2 fixup, it was not
set in the mount flags, so re-check after the fixup so that the current
session will use the feature.

Also fix up the comments to reflect these changes.

SGI-PV: 980085
SGI-Modid: xfs-linux-melb:xfs-kern:30778a

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
fs/xfs/xfs_mount.c
fs/xfs/xfs_sb.h