]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] hugetlb: demand fault handler
authorAdam Litke <agl@us.ibm.com>
Sun, 30 Oct 2005 01:16:46 +0000 (18:16 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 30 Oct 2005 04:40:43 +0000 (21:40 -0700)
commit45c0338f19c21e9b893739607c8ed1ca3d39453d
tree82ee135f8678094664d7311617287802d54d52cf
parent054ff79f9837eaf3f9482de43801555c1b378b43
[PATCH] hugetlb: demand fault handler

Below is a patch to implement demand faulting for huge pages.  The main
motivation for changing from prefaulting to demand faulting is so that huge
page memory areas can be allocated according to NUMA policy.

Thanks to consolidated hugetlb code, switching the behavior requires changing
only one fault handler.  The bulk of the patch just moves the logic from
hugelb_prefault() to hugetlb_pte_fault() and find_get_huge_page().

Signed-off-by: Adam Litke <agl@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/hugetlbfs/inode.c
mm/hugetlb.c