Home
last modified time | relevance | path

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

/mm/
Dmmap.c3127 bool may_expand_vm(struct mm_struct *mm, vm_flags_t flags, unsigned long npages) in may_expand_vm() argument
3129 if (mm->total_vm + npages > rlimit(RLIMIT_AS) >> PAGE_SHIFT) in may_expand_vm()
3133 mm->data_vm + npages > rlimit(RLIMIT_DATA) >> PAGE_SHIFT) { in may_expand_vm()
3136 mm->data_vm + npages <= rlimit_max(RLIMIT_DATA) >> PAGE_SHIFT) in may_expand_vm()
3141 (mm->data_vm + npages) << PAGE_SHIFT, in may_expand_vm()
3150 void vm_stat_account(struct mm_struct *mm, vm_flags_t flags, long npages) in vm_stat_account() argument
3152 mm->total_vm += npages; in vm_stat_account()
3155 mm->exec_vm += npages; in vm_stat_account()
3157 mm->stack_vm += npages; in vm_stat_account()
3159 mm->data_vm += npages; in vm_stat_account()
Dnommu.c1482 unsigned long npages; in split_vma() local
1507 npages = (addr - vma->vm_start) >> PAGE_SHIFT; in split_vma()
1513 region->vm_pgoff = new->vm_pgoff += npages; in split_vma()
1524 vma->vm_region->vm_pgoff = vma->vm_pgoff += npages; in split_vma()