mm-lru-add-vm_warn_on_once_folio-to-lru-maintenance-helpers.patch removed from -mm tree
The quilt patch titled
Subject: mm: lru: add VM_WARN_ON_ONCE_FOLIO to lru maintenance helpers
has been removed from the -mm tree. Its filename was
mm-lru-add-vm_warn_on_once_folio-to-lru-maintenance-helpers.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: Muchun Song <[email protected]>
Subject: mm: lru: add VM_WARN_ON_ONCE_FOLIO to lru maintenance helpers
Date: Thu, 5 Mar 2026 19:52:51 +0800
We must ensure the folio is deleted from or added to the correct lruvec list. So, add VM_WARN_ON_ONCE_FOLIO() to catch invalid users. The VM_BUG_ON_PAGE() in move_pages_to_lru() can be removed as add_page_to_lru_list() will perform the necessary check.
---
include/linux/mm_inline.h | 6 ++++++ mm/vmscan.c | 1 - 2 files changed, 6 insertions(+), 1 deletion(-)
include/linux/mm_inline.h renamed from include/linux/mm_inline.h~mm-lru-add-vm_warn_on_once_folio-to-lru-maintenance-helpers +6 -0
@@ -348,6 +348,8 @@ void lruvec_add_folio(struct lruvec *lru {enum lru_list lru =folio_lru_list (folio); +VM_WARN_ON_ONCE_FOLIO (!folio_matches_lruvec (folio, lruvec), folio); +if (lru_gen_add_folio (lruvec, folio, false))return ;
@@ -362,6 +364,8 @@ void lruvec_add_folio_tail(struct lruvec {enum lru_list lru =folio_lru_list (folio); +VM_WARN_ON_ONCE_FOLIO (!folio_matches_lruvec (folio, lruvec), folio); +if (lru_gen_add_folio (lruvec, folio, true))return ;
@@ -376,6 +380,8 @@ void lruvec_del_folio(struct lruvec *lru {enum lru_list lru =folio_lru_list (folio); +VM_WARN_ON_ONCE_FOLIO (!folio_matches_lruvec (folio, lruvec), folio); +if (lru_gen_del_folio (lruvec, folio, false))return ;
mm/vmscan.c renamed from mm/vmscan.c~mm-lru-add-vm_warn_on_once_folio-to-lru-maintenance-helpers +0 -1
@@ -1916,7 +1916,6 @@ static unsigned int move_folios_to_lru(scontinue ; } -VM_BUG_ON_FOLIO (!folio_matches_lruvec (folio, lruvec), folio);lruvec_add_folio (lruvec, folio); nr_pages =folio_nr_pages (folio); nr_moved += nr_pages;
_
Patches currently in -mm which might be from [email protected] are