mmap.c (bd072111e7319d90a7b8127f91c2806b9a6f279e) mmap.c (a2551df7ec568d87793d2eea4ca744e86318f205)
1/*
2 * mm/mmap.c
3 *
4 * Written by obz.
5 *
6 * Address space accounting code <alan@lxorguk.ukuu.org.uk>
7 */
8

--- 74 unchanged lines hidden (view full) ---

83}
84EXPORT_SYMBOL(vm_get_page_prot);
85
86int sysctl_overcommit_memory = OVERCOMMIT_GUESS; /* heuristic overcommit */
87int sysctl_overcommit_ratio = 50; /* default is 50% */
88int sysctl_max_map_count __read_mostly = DEFAULT_MAX_MAP_COUNT;
89struct percpu_counter vm_committed_as;
90
1/*
2 * mm/mmap.c
3 *
4 * Written by obz.
5 *
6 * Address space accounting code <alan@lxorguk.ukuu.org.uk>
7 */
8

--- 74 unchanged lines hidden (view full) ---

83}
84EXPORT_SYMBOL(vm_get_page_prot);
85
86int sysctl_overcommit_memory = OVERCOMMIT_GUESS; /* heuristic overcommit */
87int sysctl_overcommit_ratio = 50; /* default is 50% */
88int sysctl_max_map_count __read_mostly = DEFAULT_MAX_MAP_COUNT;
89struct percpu_counter vm_committed_as;
90
91/* amount of vm to protect from userspace access */
92unsigned long mmap_min_addr = CONFIG_DEFAULT_MMAP_MIN_ADDR;
93
94/*
95 * Check that a process has enough memory to allocate a new virtual
96 * mapping. 0 means there is enough memory for the allocation to
97 * succeed and -ENOMEM implies there is not.
98 *
99 * We currently support three overcommit policies, which are set via the
100 * vm.overcommit_memory sysctl. See Documentation/vm/overcommit-accounting
101 *

--- 2391 unchanged lines hidden ---
91/*
92 * Check that a process has enough memory to allocate a new virtual
93 * mapping. 0 means there is enough memory for the allocation to
94 * succeed and -ENOMEM implies there is not.
95 *
96 * We currently support three overcommit policies, which are set via the
97 * vm.overcommit_memory sysctl. See Documentation/vm/overcommit-accounting
98 *

--- 2391 unchanged lines hidden ---