Lines Matching refs:grow
998 unsigned long size, unsigned long grow) in acct_stack_growth() argument
1004 if (!may_expand_vm(mm, vma->vm_flags, grow)) in acct_stack_growth()
1012 if (!mlock_future_ok(mm, vma->vm_flags, grow << PAGE_SHIFT)) in acct_stack_growth()
1025 if (security_vm_enough_memory_mm(mm, grow)) in acct_stack_growth()
1089 unsigned long size, grow; in expand_upwards() local
1092 grow = (address - vma->vm_end) >> PAGE_SHIFT; in expand_upwards()
1096 error = acct_stack_growth(vma, size, grow); in expand_upwards()
1099 mm->locked_vm += grow; in expand_upwards()
1100 vm_stat_account(mm, vma->vm_flags, grow); in expand_upwards()
1168 unsigned long size, grow; in expand_downwards() local
1171 grow = (vma->vm_start - address) >> PAGE_SHIFT; in expand_downwards()
1174 if (grow <= vma->vm_pgoff) { in expand_downwards()
1175 error = acct_stack_growth(vma, size, grow); in expand_downwards()
1178 mm->locked_vm += grow; in expand_downwards()
1179 vm_stat_account(mm, vma->vm_flags, grow); in expand_downwards()
1182 vma->vm_pgoff -= grow; in expand_downwards()