Searched refs:VM_ACCT (Results 1 – 1 of 1) sorted by relevance
88 #define VM_ACCT(size) (PAGE_ALIGN(size) >> PAGE_SHIFT) macro167 0 : security_vm_enough_memory_mm(current->mm, VM_ACCT(size)); in shmem_acct_size()173 vm_unacct_memory(VM_ACCT(size)); in shmem_unacct_size()180 if (VM_ACCT(newsize) > VM_ACCT(oldsize)) in shmem_reacct_size()182 VM_ACCT(newsize) - VM_ACCT(oldsize)); in shmem_reacct_size()183 else if (VM_ACCT(newsize) < VM_ACCT(oldsize)) in shmem_reacct_size()184 vm_unacct_memory(VM_ACCT(oldsize) - VM_ACCT(newsize)); in shmem_reacct_size()201 pages * VM_ACCT(PAGE_SIZE)); in shmem_acct_block()207 vm_unacct_memory(pages * VM_ACCT(PAGE_SIZE)); in shmem_unacct_blocks()