Home
last modified time | relevance | path

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

/linux-6.1.9/mm/
Dshmem.c88 #define VM_ACCT(size) (PAGE_ALIGN(size) >> PAGE_SHIFT) macro
158 0 : security_vm_enough_memory_mm(current->mm, VM_ACCT(size)); in shmem_acct_size()
164 vm_unacct_memory(VM_ACCT(size)); in shmem_unacct_size()
171 if (VM_ACCT(newsize) > VM_ACCT(oldsize)) in shmem_reacct_size()
173 VM_ACCT(newsize) - VM_ACCT(oldsize)); in shmem_reacct_size()
174 else if (VM_ACCT(newsize) < VM_ACCT(oldsize)) in shmem_reacct_size()
175 vm_unacct_memory(VM_ACCT(oldsize) - VM_ACCT(newsize)); in shmem_reacct_size()
192 pages * VM_ACCT(PAGE_SIZE)); in shmem_acct_block()
198 vm_unacct_memory(pages * VM_ACCT(PAGE_SIZE)); in shmem_unacct_blocks()