]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/mmap: Change munmap to use vma_munmap_struct() for accounting and
authorLiam R. Howlett <Liam.Howlett@oracle.com>
Wed, 17 Apr 2024 15:03:05 +0000 (11:03 -0400)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Fri, 7 Jun 2024 19:42:15 +0000 (15:42 -0400)
commit8580b87d5a241f925524799d706d2bba20959c62
treea5707ce34558a17bec4b854da8f9a1f462183cc5
parentf60e5365e3a20dd909573187f49bc60e80265932
mm/mmap: 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 reduce 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>
mm/internal.h
mm/mmap.c