Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 319578
b: refs/heads/master
c: 737b719
h: refs/heads/master
v: v3
  • Loading branch information
David Rientjes authored and Pekka Enberg committed Jul 10, 2012
1 parent e5ce4af commit a412e47
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 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: 20cea9683ecc6dd75a80c0dd02dc69c64e95be75
refs/heads/master: 737b719ed6569ffcd015fcdf3039dc7af47af877
13 changes: 6 additions & 7 deletions trunk/mm/slub.c
Original file line number Diff line number Diff line change
Expand Up @@ -1299,13 +1299,7 @@ static struct page *allocate_slab(struct kmem_cache *s, gfp_t flags, int node)
stat(s, ORDER_FALLBACK);
}

if (flags & __GFP_WAIT)
local_irq_disable();

if (!page)
return NULL;

if (kmemcheck_enabled
if (kmemcheck_enabled && page
&& !(s->flags & (SLAB_NOTRACK | DEBUG_DEFAULT_FLAGS))) {
int pages = 1 << oo_order(oo);

Expand All @@ -1321,6 +1315,11 @@ static struct page *allocate_slab(struct kmem_cache *s, gfp_t flags, int node)
kmemcheck_mark_unallocated_pages(page, pages);
}

if (flags & __GFP_WAIT)
local_irq_disable();
if (!page)
return NULL;

page->objects = oo_objects(oo);
mod_zone_page_state(page_zone(page),
(s->flags & SLAB_RECLAIM_ACCOUNT) ?
Expand Down

0 comments on commit a412e47

Please sign in to comment.