]> 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>
Thu, 27 Jun 2013 23:51:42 +0000 (09:51 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 28 Jun 2013 06:37:39 +0000 (16:37 +1000)
commit365ba20dbe1aae8c886b2ccfae3477b6aaf5a38e
tree8438cc953cedd4204cdd50958b07bc2b3af3594b
parent23981df2db2b29aa9ad425dd266d2b82f255a520
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