diff options
author | Lachlan McIlroy <lachlan@sgi.com> | 2007-02-10 02:36:29 -0500 |
---|---|---|
committer | Tim Shimmin <tes@sgi.com> | 2007-02-10 02:36:29 -0500 |
commit | 5478eead8528f6cb5ebe3015fb88b68b175e1093 (patch) | |
tree | 13a5a0f48f25ef5fd77fe6b1ca8e062be94fc8f4 /fs/xfs/xfs_log_recover.c | |
parent | c97be736051dacefb00643095d76fd5b70dfef7b (diff) |
[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>
Diffstat (limited to 'fs/xfs/xfs_log_recover.c')
-rw-r--r-- | fs/xfs/xfs_log_recover.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/xfs/xfs_log_recover.c b/fs/xfs/xfs_log_recover.c index 61a29e1191a8..ca74d3f5910e 100644 --- a/fs/xfs/xfs_log_recover.c +++ b/fs/xfs/xfs_log_recover.c | |||
@@ -3848,6 +3848,9 @@ xlog_do_recover( | |||
3848 | ASSERT(XFS_SB_GOOD_VERSION(sbp)); | 3848 | ASSERT(XFS_SB_GOOD_VERSION(sbp)); |
3849 | xfs_buf_relse(bp); | 3849 | xfs_buf_relse(bp); |
3850 | 3850 | ||
3851 | /* We've re-read the superblock so re-initialize per-cpu counters */ | ||
3852 | xfs_icsb_reinit_counters(log->l_mp); | ||
3853 | |||
3851 | xlog_recover_check_summary(log); | 3854 | xlog_recover_check_summary(log); |
3852 | 3855 | ||
3853 | /* Normal transactions can now occur */ | 3856 | /* Normal transactions can now occur */ |