]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/mremap: use helper mlock_future_check()
authorMiaohe Lin <linmiaohe@huawei.com>
Thu, 14 Apr 2022 06:07:08 +0000 (23:07 -0700)
committerakpm <akpm@linux-foundation.org>
Thu, 14 Apr 2022 06:07:08 +0000 (23:07 -0700)
commit68ee2705e7c2aee459b6caf4c3a1eecd58598ad7
tree3fd93ef7069ae8f69bee54bb59b12a2ec1bd1c9d
parent4d142cef1b0f5df33c1c2a7bebcd7e45d3e1bfda
mm/mremap: use helper mlock_future_check()

Use helper mlock_future_check() to check whether it's safe to resize the
locked_vm to simplify the code.  Minor readability improvement.

Link: https://lkml.kernel.org/r/20220322112004.27380-1-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: Wei Yang <richard.weiyang@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/mremap.c