Lines Matching refs:pages
472 int __account_locked_vm(struct mm_struct *mm, unsigned long pages, bool inc, in __account_locked_vm() argument
484 if (locked_vm + pages > limit) in __account_locked_vm()
488 mm->locked_vm = locked_vm + pages; in __account_locked_vm()
490 WARN_ON_ONCE(pages > locked_vm); in __account_locked_vm()
491 mm->locked_vm = locked_vm - pages; in __account_locked_vm()
495 (void *)_RET_IP_, (inc) ? '+' : '-', pages << PAGE_SHIFT, in __account_locked_vm()
515 int account_locked_vm(struct mm_struct *mm, unsigned long pages, bool inc) in account_locked_vm() argument
519 if (pages == 0 || !mm) in account_locked_vm()
523 ret = __account_locked_vm(mm, pages, inc, current, in account_locked_vm()
975 int __vm_enough_memory(struct mm_struct *mm, long pages, int cap_sys_admin) in __vm_enough_memory() argument
979 vm_acct_memory(pages); in __vm_enough_memory()
988 if (pages > totalram_pages() + total_swap_pages) in __vm_enough_memory()
1012 vm_unacct_memory(pages); in __vm_enough_memory()