* Re: [PATCH 6.12.y 0/6] Backport of "mm: limit pagecache folio refcount"
[not found] <20261130132456.391567-1-pfalcato@suse.de>
@ 2026-11-30 13:38 ` Pedro Falcato
2026-11-30 15:43 ` David Hildenbrand (Arm)
0 siblings, 1 reply; 2+ messages in thread
From: Pedro Falcato @ 2026-11-30 13:38 UTC (permalink / raw)
To: stable; +Cc: david, linux-mm
+CC linux-mm
Of course I had to mess up when playing with send-email CC supression :)
Please see https://lore.kernel.org/stable/20261130132456.391567-1-pfalcato@suse.de/
for the full backports.
On Mon, Nov 30, 2026 at 01:24:50PM +0000, Pedro Falcato wrote:
> Hi,
>
> here's the backport of the "mm: limit pagecache folio refcount" (or part of
> it) to v6.18. This wasn't particularly trivial, all patches Kind Of Apply,
> except where they don't.
>
> This includes two patches which are dependencies (not present in the v6.18
> series).
>
> Also note that this doesn't include the iommufd patch, as it blamed commit
> was only introduced in 6.13.
>
> These backports do not include the net fixes, which haven't hit
> mainline yet.
>
> I'm probably stopping here. I tried on our (downstream) 6.4 kernel and
> nothing applies. I fully expect it to not apply on 6.6 LTS, and other
> vintage kernels.
>
> Anyway, please consider for stable.
>
> To: stable@vger.kernel.org
> Cc: linux-mm@kvack.org
> Cc: "David Hildenbrand (Arm)" <david@kernel.org>
>
> David Hildenbrand (Arm) (4):
> mm: limit pagecache folio refcount when mapping pages
> mm: limit pagecache folio refcount when splicing into pipes
> mm/mmu_gather: flush pending references early before the folio limit
> mm/gup: limit pagecache folio refcount when grabbing references
>
> Matthew Wilcox (Oracle) (1):
> filemap: Add folio_next_pos()
>
> Max Kellermann (1):
> mm: constify pagemap related test/getter functions
>
> fs/fuse/dev.c | 5 ++-
> fs/ocfs2/alloc.c | 2 +-
> include/asm-generic/tlb.h | 6 +--
> include/linux/mm.h | 89 +++++++++++++++++++++++++++++++++------
> include/linux/pagemap.h | 66 +++++++++++++++++------------
> mm/filemap.c | 29 ++++++++-----
> mm/gup.c | 32 +++++++++-----
> mm/huge_memory.c | 10 +++++
> mm/internal.h | 4 +-
> mm/memory.c | 39 ++++++++++++++---
> mm/migrate.c | 11 +++++
> mm/mmu_gather.c | 10 +++--
> mm/shmem.c | 7 ++-
> mm/userfaultfd.c | 4 ++
> mm/util.c | 26 ++++++++++++
> 15 files changed, 259 insertions(+), 81 deletions(-)
>
> --
> 2.56.0
>
--
Pedro
^ permalink raw reply [flat|nested] 2+ messages in thread