]> git.baikalelectronics.ru Git - kernel.git/commit
mm/mremap: use helper mlock_future_check()
authorMiaohe Lin <linmiaohe@huawei.com>
Fri, 29 Apr 2022 06:16:14 +0000 (23:16 -0700)
committerakpm <akpm@linux-foundation.org>
Fri, 29 Apr 2022 06:16:14 +0000 (23:16 -0700)
commitd91ca2a974882120309aff9a6b0a87d55584ebe1
treef4e6a4f9783db299c4a83ec3f8256d5cef47561c
parente5d9fd57088d2b151f54c6d087301ed6275b290f
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