]> err.no Git - linux-2.6/commit
[PATCH] slab: clean up kmem_getpages
authorChristoph Hellwig <hch@lst.de>
Fri, 23 Jun 2006 09:03:17 +0000 (02:03 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 23 Jun 2006 14:42:48 +0000 (07:42 -0700)
commite1b6aa6f1404f162697650df2cdb6c374b1d6a5b
tree5d7f93f6d9a315b66fbc2bcfb7cc5d866a7013e9
parenta43a8c39bbb493c9e93f6764b350de2e33e18e92
[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 <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/slab.c