aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <[email protected]>2023-01-11 14:29:03 +0000
committerAndrew Morton <[email protected]>2023-02-02 22:32:58 -0800
commit21a000fe97a018c6d25be63892afb4fd8210ab57 (patch)
tree18836ef21f41ed7bf54d4f19521c5d2d63c7f3c8 /tools/perf/scripts/python/export-to-sqlite.py
parent5eb5cea11dcbafaa37685bc4e89e1d4ae9c434ea (diff)
mm: reimplement compound_nr()
Turn compound_nr() into a wrapper around folio_nr_pages(). Similarly to compound_order(), casting the struct page directly to struct folio preserves the existing behaviour, while calling page_folio() would change the behaviour. Move thp_nr_pages() down in the file so that compound_nr() can be after folio_nr_pages(). [[email protected]: fix assertion triggering] Link: https://lkml.kernel.org/r/[email protected] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Matthew Wilcox (Oracle) <[email protected]> Cc: Hugh Dickins <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions