Skip to contentSkip to conversation

fix non-smp xfs build

PATCH In review Eric Sandeen 2 participants 2 messages Apr 23, 2008 – Apr 24, 2008 XFS filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix non-smp xfs build

xfs_reserve_blocks() calls xfs_icsb_sync_counters_locked(), which is not defined if !CONFIG_SMP/!HAVE_PERCPU_SB

---

fs/xfs/xfs_mount.h +1 -0
Index: linux-2.6-xfs/fs/xfs/xfs_mount.h
===================================================================
@@ -217,6 +217,7 @@ extern void	xfs_icsb_sync_counters_locke
 #define xfs_icsb_init_counters(mp)	(0)
 #define xfs_icsb_reinit_counters(mp)	do { } while (0)
 #define xfs_icsb_sync_counters(mp, flags)	do { } while (0)
+#define xfs_icsb_sync_counters_locked(mp, flags) do { } while (0)
 #endif
 
 typedef struct xfs_ail {
#1 lore raw
Quoted 2 lines · Eric Sandeen

xfs_reserve_blocks() calls xfs_icsb_sync_counters_locked(), which is not defined if !CONFIG_SMP/!HAVE_PERCPU_SB

Looks good. Thanks for fixing this up!