linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] m68k: Remove use of page->index
@ 2025-05-16 15:13 Matthew Wilcox (Oracle)
  2025-05-19 23:05 ` Andrew Morton
  0 siblings, 1 reply; 2+ messages in thread
From: Matthew Wilcox (Oracle) @ 2025-05-16 15:13 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Matthew Wilcox (Oracle), linux-mm, Geert Uytterhoeven

Switch to using struct ptdesc to store the markbits which will
allow us to remove index from struct page.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
---
Andrew, please queue this one before "mm: rename page->index +to page->__folio_index"
Geert, there's several more changes that I'll want to make to this file,
but I don't want to do them in a rush.  I'll send you more patches
later.

 arch/m68k/mm/motorola.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/m68k/mm/motorola.c b/arch/m68k/mm/motorola.c
index 73651e093c4d..d5afcc70a2f4 100644
--- a/arch/m68k/mm/motorola.c
+++ b/arch/m68k/mm/motorola.c
@@ -105,7 +105,8 @@ static struct list_head ptable_list[3] = {
 
 #define PD_PTABLE(page) ((ptable_desc *)&(virt_to_page((void *)(page))->lru))
 #define PD_PAGE(ptable) (list_entry(ptable, struct page, lru))
-#define PD_MARKBITS(dp) (*(unsigned int *)&PD_PAGE(dp)->index)
+#define PD_PTDESC(ptable) (list_entry(ptable, struct ptdesc, pt_list))
+#define PD_MARKBITS(dp) (*(unsigned int *)&PD_PTDESC(dp)->pt_index)
 
 static const int ptable_shift[3] = {
 	7+2, /* PGD */
-- 
2.47.2



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

* Re: [PATCH] m68k: Remove use of page->index
  2025-05-16 15:13 [PATCH] m68k: Remove use of page->index Matthew Wilcox (Oracle)
@ 2025-05-19 23:05 ` Andrew Morton
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Morton @ 2025-05-19 23:05 UTC (permalink / raw)
  To: Matthew Wilcox (Oracle); +Cc: linux-mm, Geert Uytterhoeven

On Fri, 16 May 2025 16:13:29 +0100 "Matthew Wilcox (Oracle)" <willy@infradead.org> wrote:

> Andrew, please queue this one before "mm: rename page->index +to page->__folio_index"

No probs.


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

end of thread, other threads:[~2025-05-19 23:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-05-16 15:13 [PATCH] m68k: Remove use of page->index Matthew Wilcox (Oracle)
2025-05-19 23:05 ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox