Searched refs:allowed (Results 1 – 2 of 2) sorted by relevance
932 unsigned long allowed; in vm_commit_limit() local935 allowed = sysctl_overcommit_kbytes >> (PAGE_SHIFT - 10); in vm_commit_limit()937 allowed = ((totalram_pages() - hugetlb_total_pages()) in vm_commit_limit()939 allowed += total_swap_pages; in vm_commit_limit()941 return allowed; in vm_commit_limit()987 long allowed; in __vm_enough_memory() local1003 allowed = vm_commit_limit(); in __vm_enough_memory()1008 allowed -= sysctl_admin_reserve_kbytes >> (PAGE_SHIFT - 10); in __vm_enough_memory()1016 allowed -= min_t(long, mm->total_vm / 32, reserve); in __vm_enough_memory()1019 if (percpu_counter_read_positive(&vm_committed_as) < allowed) in __vm_enough_memory()
826 int allowed = 0; in user_shm_lock() local841 allowed = 0; in user_shm_lock()844 allowed = 1; in user_shm_lock()847 return allowed; in user_shm_lock()