]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/vma: Track start and end for munmap in vma_munmap_struct
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Thu, 15 Aug 2024 18:56:03 +0000 (14:56 -0400)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Fri, 23 Aug 2024 12:46:02 +0000 (08:46 -0400)
commitc6afbe0eb632d630cf66641496234a6632ea2174
tree18e8b1c2349b4161c6dae59de62a3a2e25d205e8
parent6da0f4e6f67c04b660770dad607df67009cbeaa5
mm/vma: Track start and end for munmap in vma_munmap_struct

Set the start and end address for munmap when the prev and next are
gathered.  This is needed to avoid incorrect addresses being used during
the vms_complete_munmap_vmas() function if the prev/next vma are
expanded.

Add a new helper vms_complete_pte_clear(), which is needed later and
will avoid growing the argument list to unmap_region() beyond the 9 it
already has.

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