aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/hugetlb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h
index bd7e98752222..251233c1494d 100644
--- a/include/linux/hugetlb.h
+++ b/include/linux/hugetlb.h
@@ -360,6 +360,7 @@ static inline pte_t arch_make_huge_pte(pte_t entry, struct vm_area_struct *vma,
360 360
361static inline struct hstate *page_hstate(struct page *page) 361static inline struct hstate *page_hstate(struct page *page)
362{ 362{
363 VM_BUG_ON(!PageHuge(page));
363 return size_to_hstate(PAGE_SIZE << compound_order(page)); 364 return size_to_hstate(PAGE_SIZE << compound_order(page));
364} 365}
365 366