mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] mm: Remove pagetable_dtor_free()
@ 2026-10-30  8:37 Muchun Song
  2026-10-30  8:37 ` [PATCH 1/2] mm: remove pagetable_dtor_free() Muchun Song
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Muchun Song @ 2026-10-30  8:37 UTC (permalink / raw)
  To: Andrew Morton
  Cc: David Hildenbrand, Oscar Salvador, Alistair Popple, Will Deacon,
	Aneesh Kumar K . V, Arnd Bergmann, Geert Uytterhoeven,
	Madhavan Srinivasan, Alexander Gordeev, Gerald Schaefer,
	Yoshinori Sato, Rich Felker, John Paul Adrian Glaubitz,
	David S . Miller, Andreas Larsson, Dave Hansen, x86, linux-m68k,
	linuxppc-dev, linux-s390, linux-sh, sparclinux, linux-arch,
	linux-mm, linux-kernel, Muchun Song, Muchun Song

This is a follow-up cleanup to the page-table teardown fixes [1].

pagetable_free() now invokes pagetable_dtor() for constructed page tables.
This makes pagetable_dtor_free() redundant and leaves explicit destructor
calls immediately before pagetable_free() duplicating lifecycle handling.

Remove pagetable_dtor_free() and convert its callers to pagetable_free(),
then remove the remaining redundant pagetable_dtor() calls. This keeps the
destructor decision in the common free path. No functional change is
intended.

[1] https://lore.kernel.org/r/20261023063428.3658761-1-songmuchun@bytedance.com

Muchun Song (2):
  mm: remove pagetable_dtor_free()
  mm: remove redundant pagetable_dtor() calls

 arch/m68k/include/asm/mcf_pgalloc.h    |  5 ++---
 arch/m68k/mm/motorola.c                |  2 +-
 arch/powerpc/mm/book3s64/mmu_context.c |  1 -
 arch/powerpc/mm/book3s64/pgtable.c     |  1 -
 arch/powerpc/mm/pgtable-frag.c         |  2 --
 arch/s390/include/asm/pgalloc.h        |  4 ----
 arch/s390/mm/pgalloc.c                 |  4 ++--
 arch/sh/mm/pgtable.c                   |  2 +-
 arch/sparc/mm/init_64.c                |  1 -
 arch/x86/mm/pat/set_memory.c           | 10 +---------
 arch/x86/mm/pgtable.c                  |  5 ++---
 include/asm-generic/pgalloc.h          | 12 ++++++------
 include/asm-generic/tlb.h              |  2 +-
 include/linux/mm.h                     |  6 ------
 14 files changed, 16 insertions(+), 41 deletions(-)


base-commit: 9c449f885765cf8d80b2c60b1971e774bba51a3f
-- 
2.54.0


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

end of thread, other threads:[~2026-10-30 13:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-30  8:37 [PATCH 0/2] mm: Remove pagetable_dtor_free() Muchun Song
2026-10-30  8:37 ` [PATCH 1/2] mm: remove pagetable_dtor_free() Muchun Song
2026-10-30  9:39   ` Geert Uytterhoeven
2026-10-30  8:38 ` [PATCH 2/2] mm: remove redundant pagetable_dtor() calls Muchun Song
2026-10-30  9:39   ` Geert Uytterhoeven
2026-10-30 13:48 ` [PATCH 0/2] mm: Remove pagetable_dtor_free() Vishal Moola (Fractile)

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

all inboxes | Powered by JetHome®