]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
mm/mmap: add inline munmap_vma_range() for code readability
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Sat, 17 Oct 2020 23:14:09 +0000 (16:14 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 18 Oct 2020 16:27:09 +0000 (09:27 -0700)
commitfb8090b699c3e147e5bef8e0008edc3bddc33fad
tree71825c5cbf6136984c15631ccf4870dd79d7be78
parent3903b55a6117ee5a8c90108beaf8d921474aa05a
mm/mmap: add inline munmap_vma_range() for code readability

There are two locations that have a block of code for munmapping a vma
range.  Change those two locations to use a function and add meaningful
comments about what happens to the arguments, which was unclear in the
previous code.

Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Link: http://lkml.kernel.org/r/20200818154707.2515169-2-Liam.Howlett@Oracle.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/mmap.c