mm-use-folio_expected_ref_count-helper-for-reference-counting.patch removed from -mm tree
The quilt patch titled
Subject: mm: use folio_expected_ref_count() helper for reference counting
has been removed from the -mm tree. Its filename was
mm-use-folio_expected_ref_count-helper-for-reference-counting.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Shivank Garg <[email protected]>
Subject: mm: use folio_expected_ref_count() helper for reference counting
Date: Wed, 11 Jun 2025 05:27:07 +0000
Replace open-coded folio reference count calculations with the folio_expected_ref_count().
No functional changes intended.
Signed-off-by Shivank Garg <[email protected]>
Reviewed-by Oscar Salvador <[email protected]>
Cc Adrian Hunter <[email protected]>
Cc Alexander Shishkin <[email protected]>
Cc Alistair Popple <[email protected]>
Cc Arnaldo Carvalho de Melo <[email protected]>
Cc Ian Rogers <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Kan Liang <[email protected]>
Cc Marc Rutland <[email protected]>
Cc "Masami Hiramatsu (Google)" <[email protected]>
Cc Matthew Wilcox (Oracle) <[email protected]>
Cc Namhyung kim <[email protected]>
Cc Oleg Nesterov <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Steven Rostedt <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
kernel/events/uprobes.c | 3 +-- mm/memfd.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-)
kernel/events/uprobes.c renamed from kernel/events/uprobes.c~mm-use-folio_expected_ref_count-helper-for-reference-counting +1 -2
@@ -436,8 +436,7 @@ static int __uprobe_write_opcode(struct* there are no unexpected folio references ... */ if (is_register ||userfaultfd_missing (vma) || - (folio_ref_count (folio) !=folio_mapcount (folio) +1 + -folio_test_swapcache (folio) *folio_nr_pages (folio))) + (folio_ref_count (folio) !=folio_expected_ref_count (folio) +1 )) goto remap;/*
mm/memfd.c renamed from mm/memfd.c~mm-use-folio_expected_ref_count-helper-for-reference-counting +1 -2
@@ -32,8 +32,7 @@static bool memfd_folio_has_extra_refs (struct folio *folio) { -return folio_ref_count (folio) -folio_mapcount (folio) != -folio_nr_pages (folio); +return folio_ref_count (folio) !=folio_expected_ref_count (folio); }static void memfd_tag_pins (struct xa_state *xas)
_
Patches currently in -mm which might be from [email protected] are