[PATCH 0/2] mm/hugetlb: Fix commandline parsing behavior for invalid hugepagesize

From: Vaishali Thakkar
Date: Tue Mar 22 2016 - 06:11:20 EST


Current code fails to ignore the 'hugepages=' parameters when unsupported
hugepagesize is specified. With this patchset, introduce new architecture
independent routine hugetlb_bad_size to handle such command line options. And
then call it in architecture specific code.

Vaishali Thakkar (2):
mm/hugetlb: Introduce hugetlb_bad_size
arch:mm: Use hugetlb_bad_size

arch/arm64/mm/hugetlbpage.c | 1 +
arch/metag/mm/hugetlbpage.c | 1 +
arch/powerpc/mm/hugetlbpage.c | 7 +++++--
arch/tile/mm/hugetlbpage.c | 7 ++++++-
arch/x86/mm/hugetlbpage.c | 1 +
include/linux/hugetlb.h | 1 +
mm/hugetlb.c | 14 +++++++++++++-
7 files changed, 28 insertions(+), 4 deletions(-)

--
2.1.4