hugetlb: multiple hstates for multiple page sizes
authorAndi Kleen <[email protected]>
Thu, 24 Jul 2008 04:27:42 +0000 (21:27 -0700)
committerLinus Torvalds <[email protected]>
Thu, 24 Jul 2008 17:47:17 +0000 (10:47 -0700)
commite5ff215941d59f8ae6bf58f6428dc5c26745a612
treed8a3f730124d6608c6c880515625ca2d4e4ed044
parenta5516438959d90b071ff0a484ce4f3f523dc3152
hugetlb: multiple hstates for multiple page sizes

Add basic support for more than one hstate in hugetlbfs.  This is the key
to supporting multiple hugetlbfs page sizes at once.

- Rather than a single hstate, we now have an array, with an iterator
- default_hstate continues to be the struct hstate which we use by default
- Add functions for architectures to register new hstates

[[email protected]: coding-style fixes]
Acked-by: Adam Litke <[email protected]>
Acked-by: Nishanth Aravamudan <[email protected]>
Signed-off-by: Andi Kleen <[email protected]>
Signed-off-by: Nick Piggin <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/hugetlb.h
kernel/sysctl.c
mm/hugetlb.c