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

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

Link: https://lkml.kernel.org/r/20220402032231.64974-1-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/mmap.c