Lines Matching defs:grow
167 /* Don't let a single process grow too big:
251 * segment grow beyond its set limit the in case where the limit is
1436 * grow-up and grow-down cases.
1438 static int acct_stack_growth(struct vm_area_struct * vma, unsigned long size, unsigned long grow)
1445 if (!may_expand_vm(mm, grow))
1456 locked = mm->locked_vm + grow;
1462 /* Check to ensure the stack will not grow into a hugetlb-only region */
1472 if (security_vm_enough_memory(grow))
1476 mm->total_vm += grow;
1478 mm->locked_vm += grow;
1479 vm_stat_account(mm, vma->vm_flags, vma->vm_file, grow);
1522 unsigned long size, grow;
1525 grow = (address - vma->vm_end) >> PAGE_SHIFT;
1527 error = acct_stack_growth(vma, size, grow);
1584 unsigned long size, grow;
1587 grow = (vma->vm_start - address) >> PAGE_SHIFT;
1589 error = acct_stack_growth(vma, size, grow);
1592 vma->vm_pgoff -= grow;