diff options
author | 2022-06-16 10:48:36 -0700 | |
---|---|---|
committer | 2022-07-17 17:14:32 -0700 | |
commit | f707fa493784b515ced01d4e261afe16fc784b5d (patch) | |
tree | c036943c7d9f40adefdd2bb24b766a08d1190884 /mm/huge_memory.c | |
parent | mm: thp: consolidate vma size check to transhuge_vma_suitable (diff) | |
download | wireguard-linux-f707fa493784b515ced01d4e261afe16fc784b5d.tar.xz wireguard-linux-f707fa493784b515ced01d4e261afe16fc784b5d.zip |
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>
Diffstat (limited to 'mm/huge_memory.c')
0 files changed, 0 insertions, 0 deletions