All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/6] page->index removals in mm
@ 2024-07-23 15:34 Matthew Wilcox (Oracle)
  2024-07-23 15:34 ` [PATCH 1/6] bootmem: Stop using page->index Matthew Wilcox (Oracle)
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: Matthew Wilcox (Oracle) @ 2024-07-23 15:34 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Matthew Wilcox (Oracle), linux-mm

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().

Matthew Wilcox (Oracle) (6):
  bootmem: Stop using page->index
  mm: Constify page_address_in_vma()
  mm: Convert page_to_pgoff() to page_pgoff()
  mm: Mass constification of folio/page pointers
  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/pagemap.h      | 18 ------------------
 include/linux/rmap.h         | 12 ++++++------
 mm/bootmem_info.c            | 11 ++++++-----
 mm/huge_memory.c             | 18 +++++++++---------
 mm/internal.h                | 13 ++++++++++---
 mm/ksm.c                     |  5 +++--
 mm/memory-failure.c          | 28 +++++++++++++++-------------
 mm/page_vma_mapped.c         |  5 +++--
 mm/percpu.c                  |  4 ++--
 mm/rmap.c                    | 18 ++++++++++--------
 mm/sparse.c                  |  8 ++++----
 mm/util.c                    |  2 +-
 15 files changed, 94 insertions(+), 89 deletions(-)

-- 
2.43.0



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-07-24  7:24 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-23 15:34 [PATCH 0/6] page->index removals in mm Matthew Wilcox (Oracle)
2024-07-23 15:34 ` [PATCH 1/6] bootmem: Stop using page->index Matthew Wilcox (Oracle)
2024-07-23 15:34 ` [PATCH 2/6] mm: Constify page_address_in_vma() Matthew Wilcox (Oracle)
2024-07-24  5:54   ` kernel test robot
2024-07-24  7:24   ` kernel test robot
2024-07-23 15:34 ` [PATCH 3/6] mm: Convert page_to_pgoff() to page_pgoff() Matthew Wilcox (Oracle)
2024-07-24  7:24   ` kernel test robot
2024-07-23 15:34 ` [PATCH 4/6] mm: Mass constification of folio/page pointers Matthew Wilcox (Oracle)
2024-07-23 15:35 ` [PATCH 5/6] mm: Remove references to page->index in huge_memory.c Matthew Wilcox (Oracle)
2024-07-23 15:35 ` [PATCH 6/6] mm: Use page->private instead of page->index in percpu Matthew Wilcox (Oracle)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.