]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/vma: Change munmap to use vma_munmap_struct() for accounting and surrounding
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Mon, 12 Aug 2024 21:59:25 +0000 (17:59 -0400)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Wed, 21 Aug 2024 13:18:03 +0000 (09:18 -0400)
commita442afa16b6ae2c181a6be4f23365c08b3902942
tree3bdc3c1884b6a9d2db940022a9747fb3641f1dde
parente010cfc0b0952407f885593c1473998ff7cc96e6
mm/vma: Change munmap to use vma_munmap_struct() for accounting and surrounding
vmas

Clean up the code by changing the munmap operation to use a structure
for the accounting and munmap variables.

Since remove_mt() is only called in one location and the contents will
be reduced to almost nothing.  The remains of the function can be added
to vms_complete_munmap_vmas().

Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Reviewed-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Reviewed-by: Suren Baghdasaryan <surenb@google.com>
mm/vma.c
mm/vma.h