From: Christoph Hellwig Date: Fri, 23 Jun 2006 09:03:17 +0000 (-0700) Subject: [PATCH] slab: clean up kmem_getpages X-Git-Tag: v2.6.18-rc1~1081^2~197 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1b6aa6f1404f162697650df2cdb6c374b1d6a5b;p=pandora-kernel.git [PATCH] slab: clean up kmem_getpages The last ifdef addition hit the ugliness treshold on this functions, so: - rename the variable i to nr_pages so it's somewhat descriptive - remove the addr variable and do the page_address call at the very end - instead of ifdef'ing the whole alloc_pages_node call just make the __GFP_COMP addition to flags conditional - rewrite the __GFP_COMP comment to make sense Signed-off-by: Christoph Hellwig Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed