mmap.c (d744f4acb81ae2f2c33bce71da1f65be32ed1d65) mmap.c (94f59ea591f17d5fb77f68e820b27522596a7e9e)
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 */

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

1610
1611 if (file || vma->vm_file) {
1612unmap_and_free_vma:
1613 fput(vma->vm_file);
1614 vma->vm_file = NULL;
1615
1616 vma_iter_set(&vmi, vma->vm_end);
1617 /* Undo any partial mapping done by a device driver. */
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 */

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

1610
1611 if (file || vma->vm_file) {
1612unmap_and_free_vma:
1613 fput(vma->vm_file);
1614 vma->vm_file = NULL;
1615
1616 vma_iter_set(&vmi, vma->vm_end);
1617 /* Undo any partial mapping done by a device driver. */
1618 unmap_region(mm, &vmi.mas, vma, prev, next, vma->vm_start,
1619 vma->vm_end, vma->vm_end, true);
1618 unmap_region(&vmi.mas, vma, prev, next);
1620 }
1621 if (writable_file_mapping)
1622 mapping_unmap_writable(file->f_mapping);
1623free_vma:
1624 vm_area_free(vma);
1625unacct_error:
1626 if (charged)
1627 vm_unacct_memory(charged);

--- 773 unchanged lines hidden ---
1619 }
1620 if (writable_file_mapping)
1621 mapping_unmap_writable(file->f_mapping);
1622free_vma:
1623 vm_area_free(vma);
1624unacct_error:
1625 if (charged)
1626 vm_unacct_memory(charged);

--- 773 unchanged lines hidden ---