summaryrefslogtreecommitdiffstats
path: root/Documentation/ABI/testing/sysfs-kernel-mm-hugepages
diff options
context:
space:
mode:
authorAndi Kleen2008-07-24 06:27:43 +0200
committerLinus Torvalds2008-07-24 19:47:17 +0200
commita137e1cc6d6e7d315fef03962a2a5a113348b13b (patch)
treeb47e195c392abaa3640cc2f9187d99d58cee664a /Documentation/ABI/testing/sysfs-kernel-mm-hugepages
parenthugetlb: multiple hstates for multiple page sizes (diff)
downloadkernel-qcow2-linux-a137e1cc6d6e7d315fef03962a2a5a113348b13b.tar.gz
kernel-qcow2-linux-a137e1cc6d6e7d315fef03962a2a5a113348b13b.tar.xz
kernel-qcow2-linux-a137e1cc6d6e7d315fef03962a2a5a113348b13b.zip
hugetlbfs: per mount huge page sizes
Add the ability to configure the hugetlb hstate used on a per mount basis. - Add a new pagesize= option to the hugetlbfs mount that allows setting the page size - This option causes the mount code to find the hstate corresponding to the specified size, and sets up a pointer to the hstate in the mount's superblock. - Change the hstate accessors to use this information rather than the global_hstate they were using (requires a slight change in mm/memory.c so we don't NULL deref in the error-unmap path -- see comments). [np: take hstate out of hugetlbfs inode and vma->vm_private_data] Acked-by: Adam Litke <agl@us.ibm.com> Acked-by: Nishanth Aravamudan <nacc@us.ibm.com> Signed-off-by: Andi Kleen <ak@suse.de> 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>
Diffstat (limited to 'Documentation/ABI/testing/sysfs-kernel-mm-hugepages')
0 files changed, 0 insertions, 0 deletions