diff options
| author | Yang Shi <[email protected]> | 2022-05-19 14:08:49 -0700 |
|---|---|---|
| committer | akpm <[email protected]> | 2022-05-19 14:08:49 -0700 |
| commit | 78d12c19e02d8151b1c82228ae6bb10f174a68e2 (patch) | |
| tree | 38e7f6a866799ae04942c443b5382983a1fcab42 /tools/perf/scripts/python | |
| parent | 52b52bf15b67213c631dc8bee2a1854dd8811110 (diff) | |
mm: thp: only regular file could be THP eligible
Since commit a4aeaa06d45e ("mm: khugepaged: skip huge page collapse for
special files"), khugepaged just collapses THP for regular file which is
the intended usecase for readonly fs THP. Only show regular file as THP
eligible accordingly.
And make file_thp_enabled() available for khugepaged too in order to
remove duplicate code.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Yang Shi <[email protected]>
Acked-by: Song Liu <[email protected]>
Acked-by: Vlastmil Babka <[email protected]>
Cc: Kirill A. Shutemov <[email protected]>
Cc: Matthew Wilcox (Oracle) <[email protected]>
Cc: Miaohe Lin <[email protected]>
Cc: Rik van Riel <[email protected]>
Cc: Song Liu <[email protected]>
Cc: Theodore Ts'o <[email protected]>
Cc: Zi Yan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions