]> Git Repo - linux.git/commitdiff
metag: mm: use hugetlb_bad_size()
authorVaishali Thakkar <[email protected]>
Fri, 20 May 2016 00:11:11 +0000 (17:11 -0700)
committerLinus Torvalds <[email protected]>
Fri, 20 May 2016 02:12:14 +0000 (19:12 -0700)
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]>
Signed-off-by: Linus Torvalds <[email protected]>
arch/metag/mm/hugetlbpage.c

index b38700ae4e8429cdd6b56226ed82d523f4153d44..db1b7da91e4f496b332335c2c69adf73c13fbe70 100644 (file)
@@ -239,6 +239,7 @@ static __init int setup_hugepagesz(char *opt)
        if (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;
This page took 0.057413 seconds and 4 git commands to generate.