Revert "SLUB: remove useless masking of GFP_ZERO"
This reverts commit 3811dbf671
.
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>
This commit is contained in:
parent
8536bbaff4
commit
e72e9c23ee
1 changed files with 3 additions and 0 deletions
|
@ -1470,6 +1470,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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue