Messages in this thread Patch in this message | | | From | Wanpeng Li <> | Subject | [PATCH 6/6] mm/hugetlb: use already exist interface huge_page_shift | Date | Thu, 4 Apr 2013 17:09:14 +0800 |
| |
Use already exist interface huge_page_shift instead of h->order + PAGE_SHIFT.
Signed-off-by: Wanpeng Li <liwanp@linux.vnet.ibm.com> --- mm/hugetlb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 0cae950..750ed8a 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -320,7 +320,7 @@ unsigned long vma_kernel_pagesize(struct vm_area_struct *vma) hstate = hstate_vma(vma); - return 1UL << (hstate->order + PAGE_SHIFT); + return 1UL << huge_page_shift(hstate); } EXPORT_SYMBOL_GPL(vma_kernel_pagesize); -- 1.7.10.4
| |