]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/vma: Inline munmap operation in mmap_region()
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Mon, 12 Aug 2024 22:07:29 +0000 (18:07 -0400)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Fri, 23 Aug 2024 12:46:02 +0000 (08:46 -0400)
commit7b96ab7b98cdc01d52959ba712b69505a0b7dec5
tree7ae067e498fecf2224b3857523bc83fdb3d32970
parent1a25642eff91be5bd179f716e8da3450e7e49295
mm/vma: Inline munmap operation in mmap_region()

mmap_region is already passed sanitized addr and len, so change the
call to do_vmi_munmap() to do_vmi_align_munmap() and inline the other
checks.

The inlining of the function and checks is an intermediate step in the
series so future patches are easier to follow.

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