]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm/hugetlb: use already existing interface huge_page_shift
authorWanpeng Li <liwanp@linux.vnet.ibm.com>
Fri, 7 Jun 2013 00:07:55 +0000 (10:07 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 7 Jun 2013 05:42:16 +0000 (15:42 +1000)
commit43db87cad3f34df7d6d6c4daaf99ccbf1ee67705
tree5aee52a205885a44c3a242383e0cd36f4b71aff8
parent122d800e418e1c0ae1e389a2e854ae88f9991ff8
mm/hugetlb: use already existing interface huge_page_shift

Use the already existing interface huge_page_shift instead of h->order +
PAGE_SHIFT.

Signed-off-by: Wanpeng Li <liwanp@linux.vnet.ibm.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Reviewed-by: Michal Hocko <mhocko@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/powerpc/mm/hugetlbpage.c
mm/hugetlb.c