SLUB: We do not need #ifdef CONFIG_SMP around bit spinlocks. Remove them Signed-off-by: Christoph Lameter Index: linux-2.6.21-rc6/mm/slub.c =================================================================== --- linux-2.6.21-rc6.orig/mm/slub.c 2007-04-10 14:05:04.000000000 -0700 +++ linux-2.6.21-rc6/mm/slub.c 2007-04-10 14:05:31.000000000 -0700 @@ -857,25 +857,19 @@ static void discard_slab(struct kmem_cac */ static __always_inline void slab_lock(struct page *page) { -#ifdef CONFIG_SMP bit_spin_lock(PG_locked, &page->flags); -#endif } static __always_inline void slab_unlock(struct page *page) { -#ifdef CONFIG_SMP bit_spin_unlock(PG_locked, &page->flags); -#endif } static __always_inline int slab_trylock(struct page *page) { int rc = 1; -#ifdef CONFIG_SMP rc = bit_spin_trylock(PG_locked, &page->flags); -#endif return rc; }