Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 261654
b: refs/heads/master
c: fc59c05
h: refs/heads/master
v: v3
  • Loading branch information
Christoph Lameter authored and Pekka Enberg committed Jul 2, 2011
1 parent bd5a7a2 commit 278c12a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 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: 80f08c191f6c9563641291bea80657a3b9faabf0
refs/heads/master: fc59c05306fe1dcfa3fb8ba34ed45407fba4689c
11 changes: 5 additions & 6 deletions trunk/mm/slub.c
Original file line number Diff line number Diff line change
Expand Up @@ -1965,8 +1965,10 @@ static void *__slab_alloc(struct kmem_cache *s, gfp_t gfpflags, int node,
if (!page)
goto new_slab;

if (unlikely(!node_match(c, node)))
goto another_slab;
if (unlikely(!node_match(c, node))) {
deactivate_slab(s, c);
goto new_slab;
}

stat(s, ALLOC_SLOWPATH);

Expand All @@ -1986,7 +1988,7 @@ static void *__slab_alloc(struct kmem_cache *s, gfp_t gfpflags, int node,
VM_BUG_ON(!page->frozen);

if (unlikely(!object))
goto another_slab;
goto new_slab;

stat(s, ALLOC_REFILL);

Expand All @@ -1995,9 +1997,6 @@ static void *__slab_alloc(struct kmem_cache *s, gfp_t gfpflags, int node,
local_irq_restore(flags);
return object;

another_slab:
deactivate_slab(s, c);

new_slab:
page = get_partial(s, gfpflags, node);
if (page) {
Expand Down

0 comments on commit 278c12a

Please sign in to comment.