From: "Matthew Wilcox (Oracle)" <willy@infradead.org>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: "Matthew Wilcox (Oracle)" <willy@infradead.org>, linux-mm@kvack.org
Subject: [PATCH v2 0/7] page->index removals in mm
Date: Sat, 5 Oct 2024 21:01:11 +0100 [thread overview]
Message-ID: <20241005200121.3231142-1-willy@infradead.org> (raw)
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().
v2:
- Add the bootmem patch to the series
https://lore.kernel.org/linux-mm/20240912185602.2342148-1-willy@infradead.org/
- Expand the scope of the page_address_in_vma() patch
- Fix the build error reported by lkp@intel.com
v1 here: https://lore.kernel.org/linux-mm/20240723153503.1669586-1-willy@infradead.org/
Matthew Wilcox (Oracle) (7):
mm: Convert page_to_pgoff() to page_pgoff()
mm: Use page_pgoff() in more places
mm: Renovate page_address_in_vma()
mm: Mass constification of folio/page pointers
bootmem: Stop using page->index
mm: Remove references to page->index in huge_memory.c
mm: Use page->private instead of page->index in percpu
arch/x86/mm/init_64.c | 9 ++++----
include/linux/bootmem_info.h | 25 +++++++++++++-------
include/linux/ksm.h | 7 +++---
include/linux/mm.h | 2 +-
include/linux/pagemap.h | 31 +++++++++++++------------
include/linux/rmap.h | 17 ++++++--------
kernel/futex/core.c | 2 +-
mm/bootmem_info.c | 11 +++++----
mm/huge_memory.c | 18 +++++++--------
mm/internal.h | 9 ++++----
mm/ksm.c | 12 +++++-----
mm/memory-failure.c | 30 ++++++++++++------------
mm/mempolicy.c | 2 +-
mm/page_vma_mapped.c | 8 +++----
mm/percpu.c | 4 ++--
mm/rmap.c | 44 +++++++++++++++++++++++-------------
mm/sparse.c | 8 +++----
mm/util.c | 2 +-
18 files changed, 133 insertions(+), 108 deletions(-)
--
2.43.0
next reply other threads:[~2024-10-05 20:01 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-05 20:01 Matthew Wilcox (Oracle) [this message]
2024-10-05 20:01 ` [PATCH v2 1/7] mm: Convert page_to_pgoff() to page_pgoff() Matthew Wilcox (Oracle)
2024-10-05 20:01 ` [PATCH v2 2/7] mm: Use page_pgoff() in more places Matthew Wilcox (Oracle)
2024-10-05 20:01 ` [PATCH v2 3/7] mm: Renovate page_address_in_vma() Matthew Wilcox (Oracle)
2024-10-05 20:01 ` [PATCH v2 4/7] mm: Mass constification of folio/page pointers Matthew Wilcox (Oracle)
2024-10-05 20:01 ` [PATCH v2 5/7] bootmem: Stop using page->index Matthew Wilcox (Oracle)
2024-10-08 18:48 ` kernel test robot
2024-10-08 19:29 ` kernel test robot
2024-10-09 21:34 ` Andrew Morton
2024-10-05 20:01 ` [PATCH v2 6/7] mm: Remove references to page->index in huge_memory.c Matthew Wilcox (Oracle)
2024-10-05 20:01 ` [PATCH v2 7/7] mm: Use page->private instead of page->index in percpu Matthew Wilcox (Oracle)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241005200121.3231142-1-willy@infradead.org \
--to=willy@infradead.org \
--cc=akpm@linux-foundation.org \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).