aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_mount.h
diff options
context:
space:
mode:
authorLachlan McIlroy <lachlan@sgi.com>2007-02-10 02:36:29 -0500
committerTim Shimmin <tes@sgi.com>2007-02-10 02:36:29 -0500
commit5478eead8528f6cb5ebe3015fb88b68b175e1093 (patch)
tree13a5a0f48f25ef5fd77fe6b1ca8e062be94fc8f4 /fs/xfs/xfs_mount.h
parentc97be736051dacefb00643095d76fd5b70dfef7b (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_mount.h')
-rw-r--r--fs/xfs/xfs_mount.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/xfs_mount.h b/fs/xfs/xfs_mount.h
index eb94b977f84c..82304b94646d 100644
--- a/fs/xfs/xfs_mount.h
+++ b/fs/xfs/xfs_mount.h
@@ -307,10 +307,12 @@ typedef struct xfs_icsb_cnts {
307#define XFS_ICSB_LAZY_COUNT (1 << 1) /* accuracy not needed */ 307#define XFS_ICSB_LAZY_COUNT (1 << 1) /* accuracy not needed */
308 308
309extern int xfs_icsb_init_counters(struct xfs_mount *); 309extern int xfs_icsb_init_counters(struct xfs_mount *);
310extern void xfs_icsb_reinit_counters(struct xfs_mount *);
310extern void xfs_icsb_sync_counters_flags(struct xfs_mount *, int); 311extern void xfs_icsb_sync_counters_flags(struct xfs_mount *, int);
311 312
312#else 313#else
313#define xfs_icsb_init_counters(mp) (0) 314#define xfs_icsb_init_counters(mp) (0)
315#define xfs_icsb_reinit_counters(mp) do { } while (0)
314#define xfs_icsb_sync_counters_flags(mp, flags) do { } while (0) 316#define xfs_icsb_sync_counters_flags(mp, flags) do { } while (0)
315#endif 317#endif
316 318