[XFS] Re-initialize the per-cpu superblock counters after recovery.
[safe/jmp/linux-2.6] / fs / xfs / xfs_log_recover.c
index 61a29e1..ca74d3f 100644 (file)
@@ -3848,6 +3848,9 @@ xlog_do_recover(
        ASSERT(XFS_SB_GOOD_VERSION(sbp));
        xfs_buf_relse(bp);
 
+       /* We've re-read the superblock so re-initialize per-cpu counters */
+       xfs_icsb_reinit_counters(log->l_mp);
+
        xlog_recover_check_summary(log);
 
        /* Normal transactions can now occur */