From: Christoph Lameter Date: Fri, 8 Jun 2007 20:46:46 +0000 (-0700) Subject: slab: fix alien cache handling X-Git-Tag: v2.6.22-rc5~84 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=3cdc0ed0cea50ea08dd146c1bbc82b1bcc2e1b80;p=linux-2.6-omap-h63xx.git slab: fix alien cache handling cache_free_alien must be called regardless if we use alien caches or not. cache_free_alien() will do the right thing if there are no alien caches available. Signed-off-by: Christoph Lameter Cc: Paul Mundt Acked-by: Pekka J Enberg Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/slab.c b/mm/slab.c index 2e71a328aa0..6d65cf4e4b2 100644 --- a/mm/slab.c +++ b/mm/slab.c @@ -3539,7 +3539,7 @@ static inline void __cache_free(struct kmem_cache *cachep, void *objp) check_irq_off(); objp = cache_free_debugcheck(cachep, objp, __builtin_return_address(0)); - if (use_alien_caches && cache_free_alien(cachep, objp)) + if (cache_free_alien(cachep, objp)) return; if (likely(ac->avail < ac->limit)) {