Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 74742
b: refs/heads/master
c: 7fd2725
h: refs/heads/master
v: v3
  • Loading branch information
Linus Torvalds committed Dec 9, 2007
1 parent 6efdd18 commit cd97579
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 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: 94545baded0bfbabdc30a3a4cb48b3db479dd6ef
refs/heads/master: 7fd272550bd43cc1d7289ef0ab2fa50de137e767
2 changes: 1 addition & 1 deletion trunk/mm/slob.c
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ static void *slob_alloc(size_t size, gfp_t gfp, int align, int node)

/* Not enough space: must allocate a new page */
if (!b) {
b = slob_new_page(gfp, 0, node);
b = slob_new_page(gfp & ~__GFP_ZERO, 0, node);
if (!b)
return 0;
sp = (struct slob_page *)virt_to_page(b);
Expand Down
3 changes: 3 additions & 0 deletions trunk/mm/slub.c
Original file line number Diff line number Diff line change
Expand Up @@ -1468,6 +1468,9 @@ static void *__slab_alloc(struct kmem_cache *s,
void **object;
struct page *new;

/* We handle __GFP_ZERO in the caller */
gfpflags &= ~__GFP_ZERO;

if (!c->page)
goto new_slab;

Expand Down

0 comments on commit cd97579

Please sign in to comment.