]> git.baikalelectronics.ru Git - 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)
commit883902d95c164f76eb5d46df12b733d1be968fc6
tree71825c5cbf6136984c15631ccf4870dd79d7be78
parentb7cde3488d34b88f7bd11418d42fbb929174a8ef
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