diff options
| author | Ryan Roberts <[email protected]> | 2024-04-08 19:39:43 +0100 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-04-25 20:56:37 -0700 |
| commit | 9faaa0f8168bfcd81469b0724b25ba3093097a08 (patch) | |
| tree | 77fc67c2780be5a666981b198d810753142ca113 /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | 14c62da21b2b865f4fc0c49edd74ed7299927d35 (diff) | |
mm: swap: update get_swap_pages() to take folio order
We are about to allow swap storage of any mTHP size. To prepare for that,
let's change get_swap_pages() to take a folio order parameter instead of
nr_pages. This makes the interface self-documenting; a power-of-2 number
of pages must be provided. We will also need the order internally so this
simplifies accessing it.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Ryan Roberts <[email protected]>
Reviewed-by: "Huang, Ying" <[email protected]>
Reviewed-by: David Hildenbrand <[email protected]>
Cc: Barry Song <[email protected]>
Cc: Barry Song <[email protected]>
Cc: Chris Li <[email protected]>
Cc: Gao Xiang <[email protected]>
Cc: Kefeng Wang <[email protected]>
Cc: Lance Yang <[email protected]>
Cc: Matthew Wilcox (Oracle) <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Yang Shi <[email protected]>
Cc: Yu Zhao <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions