diff options
author | Kefeng Wang <[email protected]> | 2024-10-17 22:14:56 +0800 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2024-11-06 20:11:15 -0800 |
commit | 9884efd795cc2f71ef3b7f42df32420b0b7ce34f (patch) | |
tree | 2753866911fd969ee9821b80b328dbd642d5bcc1 /tools/perf/scripts/python/syscall-counts.py | |
parent | 5a90c155defa684f3a21f68c3f8e40c056e6114c (diff) |
mm: huge_memory: move file_thp_enabled() into huge_memory.c
file_thp_enabled() is only used in __thp_vma_allowable_orders(), so move
it into huge_memory.c, also check READ_ONLY_THP_FOR_FS ahead to avoid
unnecessary code if config disabled.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Kefeng Wang <[email protected]>
Acked-by: David Hildenbrand <[email protected]>
Reviewed-by: Baolin Wang <[email protected]>
Cc: Barry Song <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Cc: Ryan Roberts <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions