slab: change return type of kmem_getpages() to struct page
authorJoonsoo Kim <iamjoonsoo.kim@lge.com>
Thu, 24 Oct 2013 01:07:38 +0000 (10:07 +0900)
committerPekka Enberg <penberg@iki.fi>
Thu, 24 Oct 2013 17:17:23 +0000 (20:17 +0300)
commit0c3aa83e00a9cd93f08e7aa42fba01924aa5f2fc
tree14390a0785ec404ee157fc120bf6aaba1d1cb284
parent73293c2f900d0adbb6a415b312cd57976d5ae242
slab: change return type of kmem_getpages() to struct page

It is more understandable that kmem_getpages() return struct page.
And, with this, we can reduce one translation from virt addr to page and
makes better code than before. Below is a change of this patch.

* Before
   text    data     bss     dec     hex filename
  22123   23434       4   45561    b1f9 mm/slab.o

* After
   text    data     bss     dec     hex filename
  22074   23434       4   45512    b1c8 mm/slab.o

And this help following patch to remove struct slab's colouroff.

Acked-by: Andi Kleen <ak@linux.intel.com>
Acked-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Signed-off-by: Pekka Enberg <penberg@iki.fi>
mm/slab.c