diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2024-10-05 23:01:12 +0300 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2024-11-08 01:38:07 +0300 |
commit | f7470591f8db1a72ce9f7ab49cb13c2b21b92002 (patch) | |
tree | 74216b10aff78c9bcd324f438b9b911f3a9d1a69 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | e664c2cd98cbf5e6fcc3ee92b5f3fc8f7f35e11e (diff) | |
download | linux-f7470591f8db1a72ce9f7ab49cb13c2b21b92002.tar.xz |
mm: convert page_to_pgoff() to page_pgoff()
Patch series "page->index removals in mm", v2.
As part of shrinking struct page, we need to stop using page->index. This
patchset gets rid of most of the remaining references to page->index in
mm, as well as increasing the number of functions which take a const
folio/page pointer. It shrinks the text segment of mm by a few hundred
bytes in my test config, probably mostly from removing calls to
compound_head() in page_to_pgoff().
This patch (of 7):
Change the function signature to pass in the folio as all three callers
have it. This removes a reference to page->index, which we're trying to
get rid of. And add kernel-doc.
Link: https://lkml.kernel.org/r/20241005200121.3231142-1-willy@infradead.org
Link: https://lkml.kernel.org/r/20241005200121.3231142-2-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions