Home
last modified time | relevance | path

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

/mm/
Dshmem.c89 #define VM_ACCT(size) (PAGE_ALIGN(size) >> PAGE_SHIFT) macro
170 0 : security_vm_enough_memory_mm(current->mm, VM_ACCT(size)); in shmem_acct_size()
176 vm_unacct_memory(VM_ACCT(size)); in shmem_unacct_size()
183 if (VM_ACCT(newsize) > VM_ACCT(oldsize)) in shmem_reacct_size()
185 VM_ACCT(newsize) - VM_ACCT(oldsize)); in shmem_reacct_size()
186 else if (VM_ACCT(newsize) < VM_ACCT(oldsize)) in shmem_reacct_size()
187 vm_unacct_memory(VM_ACCT(oldsize) - VM_ACCT(newsize)); in shmem_reacct_size()
204 pages * VM_ACCT(PAGE_SIZE)); in shmem_acct_block()
210 vm_unacct_memory(pages * VM_ACCT(PAGE_SIZE)); in shmem_unacct_blocks()