aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <[email protected]>2022-05-12 20:23:03 -0700
committerAndrew Morton <[email protected]>2022-05-13 07:20:16 -0700
commitdc786690a6a1d9a680e6872821291ad7ca9f520d (patch)
tree0b5fe3ef9eeea8dd0a520aa5acd7498e20df967e /tools/perf/scripts/python
parent246b648038096c6024a812aac354d27e8da987a2 (diff)
mm: allow can_split_folio() to be called when THP are disabled
The call to can_split_folio() in vmscan is currently guarded by a test of PageTransHuge() so the BUILD_BUG() is eliminated if THP are disabled. The next patch replaces that test with folio_test_large() which may be true, even when THP are disabled. However, if THP are disabled, we cannot split, so an unconditional return of false is appropriate. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Matthew Wilcox (Oracle) <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions