Re: [PATCH] mm/mmap: Introduce unlock_range() for code cleanup

From: Davidlohr Bueso
Date: Tue May 11 2021 - 17:11:55 EST


On Mon, 10 May 2021, Liam Howlett wrote:

Both __do_munmap() and exit_mmap() unlock a range of VMAs using almost
identical code blocks. Replace both blocks by a static inline function.

Signed-off-by: Liam R. Howlett <Liam.Howlett@xxxxxxxxxx>

Reviewed-by: Davidlohr Bueso <dbueso@xxxxxxx>