Andi Kleen a137e1cc6d 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>
2008-07-24 10:47:17 -07:00
..
2008-07-03 09:59:03 -05:00
2008-02-08 09:22:40 -08:00
2008-05-01 08:04:01 -07:00
2008-04-29 08:06:00 -07:00
2008-04-30 08:29:52 -07:00
2008-02-08 09:22:40 -08:00
2008-05-21 16:55:58 -07:00
2008-06-10 15:12:58 -05:00
2008-07-02 15:06:27 -06:00
2008-07-15 18:34:58 -04:00
2007-10-18 14:37:31 -07:00
2008-05-24 09:56:08 -07:00
2008-07-24 10:47:17 -07:00
2008-07-04 09:52:14 +02:00
2008-07-02 15:06:27 -06:00
2008-04-30 08:29:52 -07:00
2008-07-15 17:35:24 +03:00
2008-06-06 11:29:13 -07:00
2008-06-06 11:29:13 -07:00
2008-01-30 13:31:46 +01:00
2008-05-01 13:08:16 -04:00
2008-05-01 13:08:50 -04:00
2008-05-01 13:08:16 -04:00
2008-07-14 19:10:52 +03:00
2008-05-06 13:13:37 -07:00
2008-02-06 10:41:07 -08:00
2008-04-29 08:06:00 -07:00
2008-06-06 11:29:08 -07:00
2008-02-14 21:13:33 -08:00
2008-04-30 08:29:51 -07:00
2008-07-02 15:06:27 -06:00
2008-05-01 13:08:50 -04:00
2008-02-14 21:13:33 -08:00
2008-05-01 13:08:50 -04:00