Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 320819
b: refs/heads/master
c: 5091b74
h: refs/heads/master
i:
  320817: 2eefb2c
  320815: f32dc24
v: v3
  • Loading branch information
Christoph Lameter authored and Linus Torvalds committed Aug 1, 2012
1 parent 1e65eab commit bcc2536
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 072bb0aa5e062902968c5c1007bba332c7820cf4
refs/heads/master: 5091b74a95d447e34530e713a8971450a45498b3
7 changes: 3 additions & 4 deletions trunk/mm/slub.c
Original file line number Diff line number Diff line change
Expand Up @@ -2281,11 +2281,11 @@ static void *__slab_alloc(struct kmem_cache *s, gfp_t gfpflags, int node,
}

page = c->page;
if (likely(!kmem_cache_debug(s)))
if (likely(!kmem_cache_debug(s) && pfmemalloc_match(page, gfpflags)))
goto load_freelist;

/* Only entered in the debug case */
if (!alloc_debug_processing(s, page, freelist, addr))
if (kmem_cache_debug(s) && !alloc_debug_processing(s, page, freelist, addr))
goto new_slab; /* Slab failed checks. Next slab needed */

deactivate_slab(s, page, get_freepointer(s, freelist));
Expand Down Expand Up @@ -2337,8 +2337,7 @@ static __always_inline void *slab_alloc(struct kmem_cache *s,

object = c->freelist;
page = c->page;
if (unlikely(!object || !node_match(page, node) ||
!pfmemalloc_match(page, gfpflags)))
if (unlikely(!object || !node_match(page, node)))
object = __slab_alloc(s, gfpflags, node, addr, c);

else {
Expand Down

0 comments on commit bcc2536

Please sign in to comment.