From: Christoph Lameter Subject: slub: Simplify any_slab_object checks Since we now have total_objects counter per node use that to check for the presence of any objects. Signed-off-by: Christoph Lameter --- mm/slub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-2.6/mm/slub.c =================================================================== --- linux-2.6.orig/mm/slub.c 2008-02-15 23:26:26.000000000 -0800 +++ linux-2.6/mm/slub.c 2008-02-15 23:27:15.000000000 -0800 @@ -3771,7 +3771,7 @@ static int any_slab_objects(struct kmem_ if (!n) continue; - if (n->nr_partial || atomic_long_read(&n->nr_slabs)) + if (atomic_long_read(&n->total_objects)) return 1; } return 0;