]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] hugetlb: don't allow free hugetlb count fall below reserved count
authorChen, Kenneth W <kenneth.w.chen@intel.com>
Fri, 31 Mar 2006 10:30:01 +0000 (02:30 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 31 Mar 2006 20:18:50 +0000 (12:18 -0800)
commita877bdd48e6e937d1d044b3736fe0dda90d22628
tree6ca625d590c7ec2e31acca3f2a1d28dce2e96332
parentf91c5bb24f4cd592b4d09ffeae27f20ad9ca79e9
[PATCH] hugetlb: don't allow free hugetlb count fall below reserved count

With strict page reservation, I think kernel should enforce number of free
hugetlb page don't fall below reserved count.  Currently it is possible in
the sysctl path.  Add proper check in sysctl to disallow that.

Signed-off-by: Ken Chen <kenneth.w.chen@intel.com>
Cc: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/hugetlb.c