From: Christoph Lameter Date: Tue, 9 Aug 2011 21:12:23 +0000 (-0500) Subject: slub: Remove useless statements in __slab_alloc X-Git-Tag: v3.2-rc1~152^2^3~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7db0d7054048da140798d8bfdd7fff5f74f85abf;p=pandora-kernel.git slub: Remove useless statements in __slab_alloc Two statements in __slab_alloc() do not have any effect. 1. c->page is already set to NULL by deactivate_slab() called right before. 2. gfpflags are masked in new_slab() before being passed to the page allocator. There is no need to mask gfpflags in __slab_alloc in particular since most frequent processing in __slab_alloc does not require the use of a gfpmask. Cc: torvalds@linux-foundation.org Signed-off-by: Christoph Lameter Signed-off-by: Pekka Enberg --- Reading git-diff-tree failed