aboutsummaryrefslogtreecommitdiff
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorEric B Munson <[email protected]>2011-01-13 15:47:27 -0800
committerLinus Torvalds <[email protected]>2011-01-13 17:32:49 -0800
commitadbe8726dc2a3805630d517270db17e3af86e526 (patch)
tree9558dc935030fa9eaec390ec56080d585b438f51 /net/unix/sysctl_net_unix.c
parent08d4a24659f1284f33e574211435aa12ce968477 (diff)
hugetlb: do not allow pagesize >= MAX_ORDER pool adjustment
Huge pages with order >= MAX_ORDER must be allocated at boot via the kernel command line, they cannot be allocated or freed once the kernel is up and running. Currently we allow values to be written to the sysfs and sysctl files controling pool size for these huge page sizes. This patch makes the store functions for nr_hugepages and nr_overcommit_hugepages return -EINVAL when the pool for a page size >= MAX_ORDER is changed. [[email protected]: avoid multiple return paths in nr_hugepages_store_common()] [[email protected]: add checking in hugetlb_overcommit_handler()] Signed-off-by: Eric B Munson <[email protected]> Reported-by: CAI Qian <[email protected]> Cc: Andrea Arcangeli <[email protected]> Cc: Michal Hocko <[email protected]> Cc: Nishanth Aravamudan <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions