From: Christoph Lameter Date: Tue, 18 Dec 2007 00:20:27 +0000 (-0800) Subject: SLUB: remove useless masking of GFP_ZERO X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3811dbf67162bd08412f1b0e02e554f353e93bdb;p=linux-beck.git SLUB: remove useless masking of GFP_ZERO Remove a recently added useless masking of GFP_ZERO. GFP_ZERO is already masked out in new_slab() (See how it calls allocate_slab). No need to do it twice. This reverts the SLUB parts of 7fd272550bd43cc1d7289ef0ab2fa50de137e767. Cc: Matt Mackall Reviewed-by: Pekka Enberg Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/slub.c b/mm/slub.c index 9c1d9f3b364f..b9f37cb0f2e6 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -1468,9 +1468,6 @@ 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;