mmap.c (df2a7df9a9aa32c3df227de346693e6e802c8591) mmap.c (89b2d2a57eb97eec2e782976844995f4dd189998)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * mm/mmap.c
4 *
5 * Written by obz.
6 *
7 * Address space accounting code <alan@lxorguk.ukuu.org.uk>
8 */

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

1791 init_vma_prep(&vp, vma);
1792 vma_prepare(&vp);
1793 vma_adjust_trans_huge(vma, vma->vm_start, addr + len, 0);
1794 vma->vm_end = addr + len;
1795 vm_flags_set(vma, VM_SOFTDIRTY);
1796 vma_iter_store(vmi, vma);
1797
1798 vma_complete(&vp, vmi, mm);
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * mm/mmap.c
4 *
5 * Written by obz.
6 *
7 * Address space accounting code <alan@lxorguk.ukuu.org.uk>
8 */

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

1791 init_vma_prep(&vp, vma);
1792 vma_prepare(&vp);
1793 vma_adjust_trans_huge(vma, vma->vm_start, addr + len, 0);
1794 vma->vm_end = addr + len;
1795 vm_flags_set(vma, VM_SOFTDIRTY);
1796 vma_iter_store(vmi, vma);
1797
1798 vma_complete(&vp, vmi, mm);
1799 validate_mm(mm);
1799 khugepaged_enter_vma(vma, flags);
1800 goto out;
1801 }
1802
1803 if (vma)
1804 vma_iter_next_range(vmi);
1805 /* create a vma struct for an anonymous mapping */
1806 vma = vm_area_alloc(mm);

--- 566 unchanged lines hidden ---
1800 khugepaged_enter_vma(vma, flags);
1801 goto out;
1802 }
1803
1804 if (vma)
1805 vma_iter_next_range(vmi);
1806 /* create a vma struct for an anonymous mapping */
1807 vma = vm_area_alloc(mm);

--- 566 unchanged lines hidden ---