]> git.baikalelectronics.ru Git - kernel.git/commit
khugepaged: use helper khugepaged_test_exit() in __khugepaged_enter()
authorMiaohe Lin <linmiaohe@huawei.com>
Wed, 5 May 2021 01:33:43 +0000 (18:33 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 5 May 2021 18:27:20 +0000 (11:27 -0700)
commit18a545ba525b19d91947ed80f63449f39ceac442
tree8bcb0271cd326f98310c9b17138bfbad84c6f7b5
parenta61a7da75c00fa0f99dc167ee4bac2c877b4fee9
khugepaged: use helper khugepaged_test_exit() in __khugepaged_enter()

Commit 1c8e01d37f7e ("mm: remove the now-unnecessary mmget_still_valid()
hack") have made khugepaged_test_exit() suitable for check mm->mm_users
against 0.  Use this helper here.

Link: https://lkml.kernel.org/r/20210306032947.35921-4-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Ebru Akagunduz <ebru.akagunduz@gmail.com>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Cc: Rik van Riel <riel@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/khugepaged.c