]> git.baikalelectronics.ru Git - kernel.git/commit
hugetlb: override default huge page size
authorNick Piggin <npiggin@suse.de>
Thu, 24 Jul 2008 04:27:52 +0000 (21:27 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 24 Jul 2008 17:47:19 +0000 (10:47 -0700)
commite1c55ad5dab368963f809b77c2db494b63cda64b
tree2d66db5a2f92e3ad299e95a09d327f30f306aa24
parenta7dbe55cab3ad4b8ac985bf9496bb93e51162d60
hugetlb: override default huge page size

Allow configurations with the default huge page size which is different to
the traditional HPAGE_SIZE size.  The default huge page size is the one
represented in the legacy /proc ABIs, SHM, and which is defaulted to when
mounting hugetlbfs filesystems.

This is implemented with a new kernel option default_hugepagesz=, which
defaults to HPAGE_SIZE if not specified.

Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/kernel-parameters.txt
mm/hugetlb.c