Home
last modified time | relevance | path

Searched refs:locked (Results 1 – 11 of 11) sorted by relevance

/mm/
Dmremap.c254 unsigned long new_len, unsigned long new_addr, bool *locked) in move_vma() argument
358 *locked = true; in move_vma()
394 unsigned long locked, lock_limit; in vma_to_resize() local
395 locked = mm->locked_vm << PAGE_SHIFT; in vma_to_resize()
397 locked += new_len - old_len; in vma_to_resize()
398 if (locked > lock_limit && !capable(CAP_IPC_LOCK)) in vma_to_resize()
417 unsigned long new_addr, unsigned long new_len, bool *locked) in mremap_to() argument
462 ret = move_vma(vma, addr, old_len, new_len, new_addr, locked); in mremap_to()
500 bool locked = false; in SYSCALL_DEFINE5() local
527 &locked); in SYSCALL_DEFINE5()
[all …]
Dgup.c738 int *locked, bool notify_drop, in __get_user_pages_locked() argument
744 if (locked) { in __get_user_pages_locked()
748 BUG_ON(*locked != 1); in __get_user_pages_locked()
758 vmas, locked); in __get_user_pages_locked()
759 if (!locked) in __get_user_pages_locked()
764 if (!*locked) { in __get_user_pages_locked()
779 if (*locked) { in __get_user_pages_locked()
794 *locked = 1; in __get_user_pages_locked()
812 if (notify_drop && lock_dropped && *locked) { in __get_user_pages_locked()
818 *locked = 0; in __get_user_pages_locked()
[all …]
Dcompaction.c360 unsigned long flags, bool *locked, struct compact_control *cc) in compact_unlock_should_abort() argument
362 if (*locked) { in compact_unlock_should_abort()
364 *locked = false; in compact_unlock_should_abort()
421 bool locked = false; in isolate_freepages_block() local
439 &locked, cc)) in isolate_freepages_block()
476 if (!locked) { in isolate_freepages_block()
485 locked = compact_trylock_irqsave(&cc->zone->lock, in isolate_freepages_block()
487 if (!locked) in isolate_freepages_block()
523 if (locked) in isolate_freepages_block()
678 bool locked = false; in isolate_migratepages_block() local
[all …]
Dmlock.c667 unsigned long locked; in do_mlock() local
681 locked = len >> PAGE_SHIFT; in do_mlock()
686 locked += current->mm->locked_vm; in do_mlock()
687 if ((locked > lock_limit) && (!capable(CAP_IPC_LOCK))) { in do_mlock()
694 locked -= count_mm_mlocked_page_nr(current->mm, in do_mlock()
699 if ((locked <= lock_limit) || capable(CAP_IPC_LOCK)) in do_mlock()
841 unsigned long lock_limit, locked; in user_shm_lock() local
844 locked = (size + PAGE_SIZE - 1) >> PAGE_SHIFT; in user_shm_lock()
851 locked + user->locked_shm > lock_limit && !capable(CAP_IPC_LOCK)) in user_shm_lock()
854 user->locked_shm += locked; in user_shm_lock()
Dframe_vector.c40 int locked; in get_vaddr_frames() local
49 locked = 1; in get_vaddr_frames()
71 gup_flags, (struct page **)(vec->ptrs), &locked); in get_vaddr_frames()
99 if (locked) in get_vaddr_frames()
Drmap.c1792 bool locked) in rmap_walk_anon() argument
1799 if (locked) { in rmap_walk_anon()
1826 if (!locked) in rmap_walk_anon()
1845 bool locked) in rmap_walk_file() argument
1864 if (!locked) in rmap_walk_file()
1882 if (!locked) in rmap_walk_file()
Dmmap.c1310 unsigned long locked, lock_limit; in mlock_future_check() local
1314 locked = len >> PAGE_SHIFT; in mlock_future_check()
1315 locked += mm->locked_vm; in mlock_future_check()
1318 if (locked > lock_limit && !capable(CAP_IPC_LOCK)) in mlock_future_check()
2198 unsigned long locked; in acct_stack_growth() local
2200 locked = mm->locked_vm + grow; in acct_stack_growth()
2203 if (locked > limit && !capable(CAP_IPC_LOCK)) in acct_stack_growth()
Dmigrate.c280 void remove_migration_ptes(struct page *old, struct page *new, bool locked) in remove_migration_ptes() argument
287 if (locked) in remove_migration_ptes()
Dmemcontrol.c1568 bool locked; in mem_cgroup_oom_synchronize() local
1586 locked = mem_cgroup_oom_trylock(memcg); in mem_cgroup_oom_synchronize()
1588 if (locked) in mem_cgroup_oom_synchronize()
1591 if (locked && !memcg->oom_kill_disable) { in mem_cgroup_oom_synchronize()
1602 if (locked) { in mem_cgroup_oom_synchronize()
Dmemory.c2528 int locked; in do_swap_page() local
2581 locked = lock_page_or_retry(page, vma->vm_mm, fe->flags); in do_swap_page()
2584 if (!locked) { in do_swap_page()
Dnommu.c173 int *locked) in get_user_pages_locked() argument