]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita83a881d257b53170190054f85c14058a70e9665
treec8ff587b47dbfb4ba8546bd80629a1f8bc8c2ec8
parent9f35b6b88f2015f76fcad05724f023bca24edd08
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