]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ipc/shm, mm: Drop do_vma_munmap()
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Tue, 9 Jul 2024 17:55:26 +0000 (13:55 -0400)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Tue, 27 Aug 2024 16:49:10 +0000 (12:49 -0400)
commit63cde0cacc9b2775eb83e873d9fed9e3b13e829f
tree5e13d7b00eeba5a7908b8ac8057daeb8b4380863
parent1b8368efdc26f5c8355f19fd83e46c6add4b996c
ipc/shm, mm: Drop do_vma_munmap()

The do_vma_munmap() wrapper existed for callers that didn't have a vma
iterator and needed to check the vma mseal status prior to calling the
underlying munmap().  All callers now use a vma iterator and since the
mseal check has been moved to do_vmi_align_munmap() and the vmas are
aligned, this function can just be called instead.

do_vmi_align_munmap() can no longer be static as ipc/shm is using it and
it is exported via the mm.h header.

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