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