diff options
-rw-r--r-- | mm/slab.c | 10 | ||||
-rw-r--r-- | mm/slub.c | 10 |
2 files changed, 10 insertions, 10 deletions
@@ -3580,11 +3580,11 @@ static int alloc_kmem_cache_node(struct kmem_cache *cachep, gfp_t gfp) | |||
3580 | 3580 | ||
3581 | for_each_online_node(node) { | 3581 | for_each_online_node(node) { |
3582 | 3582 | ||
3583 | if (use_alien_caches) { | 3583 | if (use_alien_caches) { |
3584 | new_alien = alloc_alien_cache(node, cachep->limit, gfp); | 3584 | new_alien = alloc_alien_cache(node, cachep->limit, gfp); |
3585 | if (!new_alien) | 3585 | if (!new_alien) |
3586 | goto fail; | 3586 | goto fail; |
3587 | } | 3587 | } |
3588 | 3588 | ||
3589 | new_shared = NULL; | 3589 | new_shared = NULL; |
3590 | if (cachep->shared) { | 3590 | if (cachep->shared) { |
@@ -2554,7 +2554,7 @@ static void __slab_free(struct kmem_cache *s, struct page *page, | |||
2554 | 2554 | ||
2555 | } else { /* Needs to be taken off a list */ | 2555 | } else { /* Needs to be taken off a list */ |
2556 | 2556 | ||
2557 | n = get_node(s, page_to_nid(page)); | 2557 | n = get_node(s, page_to_nid(page)); |
2558 | /* | 2558 | /* |
2559 | * Speculatively acquire the list_lock. | 2559 | * Speculatively acquire the list_lock. |
2560 | * If the cmpxchg does not succeed then we may | 2560 | * If the cmpxchg does not succeed then we may |
@@ -2587,10 +2587,10 @@ static void __slab_free(struct kmem_cache *s, struct page *page, | |||
2587 | * The list lock was not taken therefore no list | 2587 | * The list lock was not taken therefore no list |
2588 | * activity can be necessary. | 2588 | * activity can be necessary. |
2589 | */ | 2589 | */ |
2590 | if (was_frozen) | 2590 | if (was_frozen) |
2591 | stat(s, FREE_FROZEN); | 2591 | stat(s, FREE_FROZEN); |
2592 | return; | 2592 | return; |
2593 | } | 2593 | } |
2594 | 2594 | ||
2595 | if (unlikely(!new.inuse && n->nr_partial >= s->min_partial)) | 2595 | if (unlikely(!new.inuse && n->nr_partial >= s->min_partial)) |
2596 | goto slab_empty; | 2596 | goto slab_empty; |