Lines Matching refs:grow
2475 unsigned long size, unsigned long grow) in acct_stack_growth() argument
2481 if (!may_expand_vm(mm, vma->vm_flags, grow)) in acct_stack_growth()
2492 locked = mm->locked_vm + grow; in acct_stack_growth()
2509 if (security_vm_enough_memory_mm(mm, grow)) in acct_stack_growth()
2563 unsigned long size, grow; in expand_upwards() local
2566 grow = (address - vma->vm_end) >> PAGE_SHIFT; in expand_upwards()
2570 error = acct_stack_growth(vma, size, grow); in expand_upwards()
2585 mm->locked_vm += grow; in expand_upwards()
2586 vm_stat_account(mm, vma->vm_flags, grow); in expand_upwards()
2643 unsigned long size, grow; in expand_downwards() local
2646 grow = (vma->vm_start - address) >> PAGE_SHIFT; in expand_downwards()
2649 if (grow <= vma->vm_pgoff) { in expand_downwards()
2650 error = acct_stack_growth(vma, size, grow); in expand_downwards()
2665 mm->locked_vm += grow; in expand_downwards()
2666 vm_stat_account(mm, vma->vm_flags, grow); in expand_downwards()
2669 WRITE_ONCE(vma->vm_pgoff, vma->vm_pgoff - grow); in expand_downwards()