Searched refs:allowed (Results 1 – 4 of 4) sorted by relevance
344 unsigned long allowed; in vm_commit_limit() local347 allowed = sysctl_overcommit_kbytes >> (PAGE_SHIFT - 10); in vm_commit_limit()349 allowed = ((totalram_pages - hugetlb_total_pages()) in vm_commit_limit()351 allowed += total_swap_pages; in vm_commit_limit()353 return allowed; in vm_commit_limit()
850 int allowed = 0; in user_shm_lock() local855 allowed = 1; in user_shm_lock()858 if (!allowed && in user_shm_lock()863 allowed = 1; in user_shm_lock()866 return allowed; in user_shm_lock()
1908 long free, allowed, reserve; in __vm_enough_memory() local1960 allowed = vm_commit_limit(); in __vm_enough_memory()1965 allowed -= sysctl_admin_reserve_kbytes >> (PAGE_SHIFT - 10); in __vm_enough_memory()1972 allowed -= min_t(long, mm->total_vm / 32, reserve); in __vm_enough_memory()1975 if (percpu_counter_read_positive(&vm_committed_as) < allowed) in __vm_enough_memory()
167 long free, allowed, reserve; in __vm_enough_memory() local223 allowed = vm_commit_limit(); in __vm_enough_memory()228 allowed -= sysctl_admin_reserve_kbytes >> (PAGE_SHIFT - 10); in __vm_enough_memory()235 allowed -= min_t(long, mm->total_vm / 32, reserve); in __vm_enough_memory()238 if (percpu_counter_read_positive(&vm_committed_as) < allowed) in __vm_enough_memory()