]> 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)
commit9506e77f222331c5e7913753d2f97a45b043e036
tree8bcb0271cd326f98310c9b17138bfbad84c6f7b5
parent6497ece09d9282c2b1c84ba075efaefc385a98b8
khugepaged: use helper khugepaged_test_exit() in __khugepaged_enter()

Commit df19e2a971d3 ("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