powerpc/mm/hugetlb: Sanity check gigantic hugepage count
authorJames Yang <James.Yang@freescale.com>
Fri, 14 Nov 2014 18:32:24 +0000 (12:32 -0600)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 2 Dec 2014 03:10:09 +0000 (14:10 +1100)
commitc4f3eb5fc527b749d6fb0d47ffdcfe83706dbe2f
treec8ff587b47dbfb4ba8546bd80629a1f8bc8c2ec8
parent0de3b56b137e92afa6a4581a0bb51633159180d6
powerpc/mm/hugetlb: Sanity check gigantic hugepage count

Limit the number of gigantic hugepages specified by the
hugepages= parameter to MAX_NUMBER_GPAGES.

Signed-off-by: James Yang <James.Yang@freescale.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/mm/hugetlbpage.c