From 5b31dee98e76173b2ee5070681c0c1b290b1a482 Mon Sep 17 00:00:00 2001 From: Christoph Lameter Date: Tue, 6 Nov 2007 21:41:38 -0800 Subject: [PATCH] kmem_cache_vacate: Fix inverted check Signed-off-by: Christoph Lameter --- mm/slub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-2.6.24-rc2-mm1/mm/slub.c =================================================================== --- linux-2.6.24-rc2-mm1.orig/mm/slub.c 2007-11-14 12:20:46.921593262 -0800 +++ linux-2.6.24-rc2-mm1/mm/slub.c 2007-11-14 12:24:08.874094268 -0800 @@ -2832,7 +2832,7 @@ static int kmem_cache_vacate(struct page BUG_ON(!PageSlab(page)); local_irq_save(flags); state = slab_lock(page); - BUG_ON(state & FROZEN); + BUG_ON(!(state & FROZEN)); s = page->slab; map = scratch + max_defrag_slab_objects * sizeof(void **);