[RFC, PATCH] slub: unfreeze_partials() uses a wrong param

From: Eric Dumazet
Date: Tue Nov 22 2011 - 10:36:33 EST


unfreeze_partials() calls add_partial(..., 1) while it should use
DEACTIVATE_TO_TAIL or DEACTIVATE_TO_HEAD

Signed-off-by: Eric Dumazet <eric.dumazet@xxxxxxxxx>
---
diff --git a/mm/slub.c b/mm/slub.c
index 7d2a996..db060b6 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -1904,7 +1904,7 @@ static void unfreeze_partials(struct kmem_cache *s)
if (l == M_PARTIAL)
remove_partial(n, page);
else
- add_partial(n, page, 1);
+ add_partial(n, page, DEACTIVATE_TO_HEAD);

l = m;
}


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/