Lines Matching refs:grow
2332 unsigned long size, unsigned long grow) in acct_stack_growth() argument
2338 if (!may_expand_vm(mm, vma->vm_flags, grow)) in acct_stack_growth()
2349 locked = mm->locked_vm + grow; in acct_stack_growth()
2366 if (security_vm_enough_memory_mm(mm, grow)) in acct_stack_growth()
2420 unsigned long size, grow; in expand_upwards() local
2423 grow = (address - vma->vm_end) >> PAGE_SHIFT; in expand_upwards()
2427 error = acct_stack_growth(vma, size, grow); in expand_upwards()
2442 mm->locked_vm += grow; in expand_upwards()
2443 vm_stat_account(mm, vma->vm_flags, grow); in expand_upwards()
2500 unsigned long size, grow; in expand_downwards() local
2503 grow = (vma->vm_start - address) >> PAGE_SHIFT; in expand_downwards()
2506 if (grow <= vma->vm_pgoff) { in expand_downwards()
2507 error = acct_stack_growth(vma, size, grow); in expand_downwards()
2522 mm->locked_vm += grow; in expand_downwards()
2523 vm_stat_account(mm, vma->vm_flags, grow); in expand_downwards()
2526 vma->vm_pgoff -= grow; in expand_downwards()