]> 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>
Wed, 19 Jun 2013 00:06:15 +0000 (10:06 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:13:10 +0000 (17:13 +1000)
commit472aee1e9818ed7ea3a0aa5438530b7804266476
treed8033a1c71333eb5b008daae9bd62ffb2b5ac033
parent280ffbb74866d7d78870dc5241f2ab35698f07f0
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