diff options
Diffstat (limited to 'include/linux/hugetlb.h')
-rw-r--r-- | include/linux/hugetlb.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h index edfca4278319..53fc34f930d0 100644 --- a/include/linux/hugetlb.h +++ b/include/linux/hugetlb.h | |||
@@ -454,7 +454,7 @@ static inline pte_t arch_make_huge_pte(pte_t entry, struct vm_area_struct *vma, | |||
454 | static inline struct hstate *page_hstate(struct page *page) | 454 | static inline struct hstate *page_hstate(struct page *page) |
455 | { | 455 | { |
456 | VM_BUG_ON_PAGE(!PageHuge(page), page); | 456 | VM_BUG_ON_PAGE(!PageHuge(page), page); |
457 | return size_to_hstate(PAGE_SIZE << compound_order(page)); | 457 | return size_to_hstate(page_size(page)); |
458 | } | 458 | } |
459 | 459 | ||
460 | static inline unsigned hstate_index_to_shift(unsigned index) | 460 | static inline unsigned hstate_index_to_shift(unsigned index) |