mmap.c (f8d112a4e657c65c888e6b8a8435ef61a66e4ab8) mmap.c (4f87153e82c4906e917d273ab7accd0d540aab35)
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 */

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

1618 mapping_unmap_writable(file->f_mapping);
1619free_vma:
1620 vm_area_free(vma);
1621unacct_error:
1622 if (charged)
1623 vm_unacct_memory(charged);
1624
1625abort_munmap:
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 */

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

1618 mapping_unmap_writable(file->f_mapping);
1619free_vma:
1620 vm_area_free(vma);
1621unacct_error:
1622 if (charged)
1623 vm_unacct_memory(charged);
1624
1625abort_munmap:
1626 if (vms.nr_pages)
1627 abort_munmap_vmas(&mas_detach, vms.closed_vm_ops);
1626 vms_abort_munmap_vmas(&vms, &mas_detach);
1628gather_failed:
1629 validate_mm(mm);
1630 return error;
1631}
1632
1633static int __vm_munmap(unsigned long start, size_t len, bool unlock)
1634{
1635 int ret;

--- 761 unchanged lines hidden ---
1627gather_failed:
1628 validate_mm(mm);
1629 return error;
1630}
1631
1632static int __vm_munmap(unsigned long start, size_t len, bool unlock)
1633{
1634 int ret;

--- 761 unchanged lines hidden ---