]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/munmap: Replace can_modify_mm with can_modify_vma
authorPedro Falcato <pedro.falcato@gmail.com>
Sat, 17 Aug 2024 00:18:29 +0000 (01:18 +0100)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Mon, 19 Aug 2024 20:11:54 +0000 (16:11 -0400)
commit1d6ae64ea22968d1536454c182aec5b645276033
tree3d7bc38528de5c9501e6ddb8ff68eaeeac94dd81
parent6c099e690bb17988dda6b449ae32d606866281f7
mm/munmap: Replace can_modify_mm with can_modify_vma

We were doing an extra mmap tree traversal just to check if the entire
range is modifiable. This can be done when we iterate through the VMAs
instead.

Signed-off-by: Pedro Falcato <pedro.falcato@gmail.com>
mm/mmap.c
mm/vma.c