]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: khugepaged: better comments for anon vma check in hugepage_vma_revalidate
authorYang Shi <shy828301@gmail.com>
Thu, 16 Jun 2022 17:48:36 +0000 (10:48 -0700)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Wed, 20 Jul 2022 00:15:07 +0000 (20:15 -0400)
commit4b58418083c83eded3921c788c4438d3c737f53a
treea7296dc5d449efb619a158ccf0fefacbd1a8e50a
parent535a39b6b07ba12ffcdb9c7a4760bf2eab283e2e
mm: khugepaged: better comments for anon vma check in hugepage_vma_revalidate

The hugepage_vma_revalidate() needs to check if the vma is still anonymous
vma or not since the address may be unmapped then remapped to file before
khugepaged reaquired the mmap_lock.

The old comment is not quite helpful, elaborate this with better comment.

Link: https://lkml.kernel.org/r/20220616174840.1202070-4-shy828301@gmail.com
Signed-off-by: Yang Shi <shy828301@gmail.com>
Reviewed-by: Zach O'Keefe <zokeefe@google.com>
Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Miaohe Lin <linmiaohe@huawei.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/khugepaged.c