[XFS] Re-initialize the per-cpu superblock counters after recovery.
authorLachlan McIlroy <lachlan@sgi.com>
Sat, 10 Feb 2007 07:36:29 +0000 (18:36 +1100)
committerTim Shimmin <tes@sgi.com>
Sat, 10 Feb 2007 07:36:29 +0000 (18:36 +1100)
commit5478eead8528f6cb5ebe3015fb88b68b175e1093
tree13a5a0f48f25ef5fd77fe6b1ca8e062be94fc8f4
parentc97be736051dacefb00643095d76fd5b70dfef7b
[XFS] Re-initialize the per-cpu superblock counters after recovery.

After filesystem recovery the superblock is re-read to bring in any
changes. If the per-cpu superblock counters are not re-initialized from
the superblock then the next time the per-cpu counters are disabled they
might overwrite the global counter with a bogus value.

SGI-PV: 957348
SGI-Modid: xfs-linux-melb:xfs-kern:27999a

Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Tim Shimmin <tes@sgi.com>
fs/xfs/xfs_log_recover.c
fs/xfs/xfs_mount.c
fs/xfs/xfs_mount.h