]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/xfs/xfs_log_recover.c
[XFS] Lazy Superblock Counters
[net-next-2.6.git] / fs / xfs / xfs_log_recover.c
index 080fabf61c92d0e23ffe07dd0069a12eee5f8a88..fddbb091a86f858c90f672fe7d5f53a7532152b2 100644 (file)
@@ -927,6 +927,14 @@ xlog_find_tail(
                        ASSIGN_ANY_LSN_HOST(log->l_last_sync_lsn, log->l_curr_cycle,
                                        after_umount_blk);
                        *tail_blk = after_umount_blk;
+
+                       /*
+                        * Note that the unmount was clean. If the unmount
+                        * was not clean, we need to know this to rebuild the
+                        * superblock counters from the perag headers if we
+                        * have a filesystem using non-persistent counters.
+                        */
+                       log->l_mp->m_flags |= XFS_MOUNT_WAS_CLEAN;
                }
        }