Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

doc: proc: fix the description to THPeligible

The THPeligible bit shows 1 if and only if the VMA is eligible for
allocating THP and the THP is also PMD mappable. Some misaligned file
VMAs may be eligible for allocating THP but the THP can't be mapped by
PMD. Make this more explicitly to avoid ambiguity.

Link: https://lkml.kernel.org/r/20220616174840.1202070-8-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>

authored by

Yang Shi and committed by
akpm
cb55b838 1064026b

+3 -1
+3 -1
Documentation/filesystems/proc.rst
··· 517 517 "SwapPss" shows proportional swap share of this mapping. Unlike "Swap", this 518 518 does not take into account swapped out page of underlying shmem objects. 519 519 "Locked" indicates whether the mapping is locked in memory or not. 520 + 520 521 "THPeligible" indicates whether the mapping is eligible for allocating THP 521 - pages - 1 if true, 0 otherwise. It just shows the current status. 522 + pages as well as the THP is PMD mappable or not - 1 if true, 0 otherwise. 523 + It just shows the current status. 522 524 523 525 "VmFlags" field deserves a separate description. This member represents the 524 526 kernel flags associated with the particular virtual memory area in two letter