diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-03-27 23:56:33 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-03-27 23:56:33 -0400 |
commit | e72e9c23ee025a4c063ca112ba0a6059f9ecc9b7 (patch) | |
tree | d4b7091cf0e021fec776cbefbdb1ea8aec116d6a | |
parent | 8536bbaff44addff8d2ac66da1156c95b1e00c4e (diff) |
Revert "SLUB: remove useless masking of GFP_ZERO"
This reverts commit 3811dbf67162bd08412f1b0e02e554f353e93bdb.
The masking was not at all useless, and it was sensible. We handle
GFP_ZERO in the caller, and passing it down to any page allocator logic
is buggy and wrong.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | mm/slub.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1470,6 +1470,9 @@ static void *__slab_alloc(struct kmem_cache *s, | |||
1470 | void **object; | 1470 | void **object; |
1471 | struct page *new; | 1471 | struct page *new; |
1472 | 1472 | ||
1473 | /* We handle __GFP_ZERO in the caller */ | ||
1474 | gfpflags &= ~__GFP_ZERO; | ||
1475 | |||
1473 | if (!c->page) | 1476 | if (!c->page) |
1474 | goto new_slab; | 1477 | goto new_slab; |
1475 | 1478 | ||