mmap.c (27f28b972e12a4080e5f5e4eb36b8224705652d4) mmap.c (de60f5f10c58d4f34b68622442c0e04180367f3f)
1/*
2 * mm/mmap.c
3 *
4 * Written by obz.
5 *
6 * Address space accounting code <alan@lxorguk.ukuu.org.uk>
7 */
8

--- 1647 unchanged lines hidden (view full) ---

1656 perf_event_mmap(vma);
1657
1658 vm_stat_account(mm, vm_flags, file, len >> PAGE_SHIFT);
1659 if (vm_flags & VM_LOCKED) {
1660 if (!((vm_flags & VM_SPECIAL) || is_vm_hugetlb_page(vma) ||
1661 vma == get_gate_vma(current->mm)))
1662 mm->locked_vm += (len >> PAGE_SHIFT);
1663 else
1/*
2 * mm/mmap.c
3 *
4 * Written by obz.
5 *
6 * Address space accounting code <alan@lxorguk.ukuu.org.uk>
7 */
8

--- 1647 unchanged lines hidden (view full) ---

1656 perf_event_mmap(vma);
1657
1658 vm_stat_account(mm, vm_flags, file, len >> PAGE_SHIFT);
1659 if (vm_flags & VM_LOCKED) {
1660 if (!((vm_flags & VM_SPECIAL) || is_vm_hugetlb_page(vma) ||
1661 vma == get_gate_vma(current->mm)))
1662 mm->locked_vm += (len >> PAGE_SHIFT);
1663 else
1664 vma->vm_flags &= ~VM_LOCKED;
1664 vma->vm_flags &= VM_LOCKED_CLEAR_MASK;
1665 }
1666
1667 if (file)
1668 uprobe_mmap(vma);
1669
1670 /*
1671 * New (or expanded) vma always get soft dirty status.
1672 * Otherwise user-space soft-dirty page tracker won't

--- 1733 unchanged lines hidden ---
1665 }
1666
1667 if (file)
1668 uprobe_mmap(vma);
1669
1670 /*
1671 * New (or expanded) vma always get soft dirty status.
1672 * Otherwise user-space soft-dirty page tracker won't

--- 1733 unchanged lines hidden ---