metag: mm: use hugetlb_bad_size()
PATCH 45/117 metag: mm: use hugetlb_bad_size()
From: Vaishali Thakkar <[email protected]>
Subject: metag: mm: use hugetlb_bad_size()
Update setup_hugepagesz() to call hugetlb_bad_size() when unsupported hugepage size is found.
Signed-off-by Vaishali Thakkar <[email protected]>
Reviewed-by Mike Kravetz <[email protected]>
Reviewed-by Naoya Horiguchi <[email protected]>
Acked-by Michal Hocko <[email protected]>
Cc Hillf Danton <[email protected]>
Cc Yaowei Bai <[email protected]>
Cc Dominik Dingel <[email protected]>
Cc Kirill A. Shutemov <[email protected]>
Cc Paul Gortmaker <[email protected]>
Cc Dave Hansen <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
arch/metag/mm/hugetlbpage.c | 1 + 1 file changed, 1 insertion(+)
arch/metag/mm/hugetlbpage.c renamed from arch/metag/mm/hugetlbpage.c~metag-mm-use-hugetlb_bad_size +1 -0
@@ -239,6 +239,7 @@ static __init int setup_hugepagesz(charif (ps == (1 <<HPAGE_SHIFT )) {hugetlb_add_hstate (HPAGE_SHIFT -PAGE_SHIFT ); }else { +hugetlb_bad_size ();pr_err ("hugepagesz: Unsupported page size %lu M\n" , ps >>20 );return 0 ;
_