s390/mm: use hugetlb_bad_size()
Update setup_hugepagesz() to call hugetlb_bad_size() when unsupported hugepage size is found. Signed-off-by: Shyam Saini <mayhs11saini@gmail.com> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
parent
179a98cba1
commit
b5003b5f0a
|
@ -217,6 +217,7 @@ static __init int setup_hugepagesz(char *opt)
|
||||||
} else if (MACHINE_HAS_EDAT2 && size == PUD_SIZE) {
|
} else if (MACHINE_HAS_EDAT2 && size == PUD_SIZE) {
|
||||||
hugetlb_add_hstate(PUD_SHIFT - PAGE_SHIFT);
|
hugetlb_add_hstate(PUD_SHIFT - PAGE_SHIFT);
|
||||||
} else {
|
} else {
|
||||||
|
hugetlb_bad_size();
|
||||||
pr_err("hugepagesz= specifies an unsupported page size %s\n",
|
pr_err("hugepagesz= specifies an unsupported page size %s\n",
|
||||||
string);
|
string);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue