]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commite11bfbfcb08ef4223b863799897c19cdf7c5bc00
tree2d66db5a2f92e3ad299e95a09d327f30f306aa24
parentb4718e628dbf68a2dee23b5709e2aa3190409c56
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