aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/khugepaged.h
diff options
context:
space:
mode:
authorYang Shi <shy828301@gmail.com>2022-05-19 14:08:49 -0700
committerakpm <akpm@linux-foundation.org>2022-05-19 14:08:49 -0700
commit78d12c19e02d8151b1c82228ae6bb10f174a68e2 (patch)
tree38e7f6a866799ae04942c443b5382983a1fcab42 /include/linux/khugepaged.h
parentmm: khugepaged: skip DAX vma (diff)
downloadwireguard-linux-78d12c19e02d8151b1c82228ae6bb10f174a68e2.tar.xz
wireguard-linux-78d12c19e02d8151b1c82228ae6bb10f174a68e2.zip
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/20220510203222.24246-5-shy828301@gmail.com Signed-off-by: Yang Shi <shy828301@gmail.com> Acked-by: Song Liu <song@kernel.org> Acked-by: Vlastmil Babka <vbabka@suse.cz> Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Cc: Matthew Wilcox (Oracle) <willy@infradead.org> Cc: Miaohe Lin <linmiaohe@huawei.com> Cc: Rik van Riel <riel@surriel.com> Cc: Song Liu <songliubraving@fb.com> Cc: Theodore Ts'o <tytso@mit.edu> Cc: Zi Yan <ziy@nvidia.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include/linux/khugepaged.h')
0 files changed, 0 insertions, 0 deletions