projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71bf79c
)
tile: mm: use hugetlb_bad_size()
author
Vaishali Thakkar
<
[email protected]
>
Fri, 20 May 2016 00:11:17 +0000
(17:11 -0700)
committer
Linus 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]
>
Cc: James Hogan <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
arch/tile/mm/hugetlbpage.c
patch
|
blob
|
history
diff --git
a/arch/tile/mm/hugetlbpage.c
b/arch/tile/mm/hugetlbpage.c
index e212c64682c55bcaaa9b4aa78c13cf6326a95e39..77ceaa343fcef10956b73222f7033031035c3897 100644
(file)
--- a/
arch/tile/mm/hugetlbpage.c
+++ b/
arch/tile/mm/hugetlbpage.c
@@
-308,11
+308,16
@@
static bool saw_hugepagesz;
static __init int setup_hugepagesz(char *opt)
{
+ int rc;
+
if (!saw_hugepagesz) {
saw_hugepagesz = true;
memset(huge_shift, 0, sizeof(huge_shift));
}
- return __setup_hugepagesz(memparse(opt, NULL));
+ rc = __setup_hugepagesz(memparse(opt, NULL));
+ if (rc)
+ hugetlb_bad_size();
+ return rc;
}
__setup("hugepagesz=", setup_hugepagesz);