mm-huge_memory-fix-folio-split-stats-counting.patch removed from -mm tree
The quilt patch titled
Subject: mm/huge_memory: fix folio split stats counting
has been removed from the -mm tree. Its filename was
mm-huge_memory-fix-folio-split-stats-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: Zi Yan <[email protected]>
Subject: mm/huge_memory: fix folio split stats counting
Date: Wed, 26 Nov 2025 16:06:18 -0500
The "return <error code>" statements for error checks at the beginning of __folio_split() skip necessary count_vm_event() and count_mthp_stat() at the end of the function. Fix these by replacing them with "ret = <error code>; goto out;".
---
mm/huge_memory.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-)
mm/huge_memory.c renamed from mm/huge_memory.c~mm-huge_memory-fix-folio-split-stats-counting +9 -5
@@ -3942,16 +3942,20 @@ static int __folio_split(struct folio *fVM_WARN_ON_ONCE_FOLIO (!folio_test_locked (folio), folio);VM_WARN_ON_ONCE_FOLIO (!folio_test_large (folio), folio); -if (folio !=page_folio (split_at) || folio !=page_folio (lock_at)) -return -EINVAL ; +if (folio !=page_folio (split_at) || folio !=page_folio (lock_at)) { + ret = -EINVAL ; + goto out; + } -if (new_order >= old_order) -return -EINVAL ; +if (new_order >= old_order) { + ret = -EINVAL ; + goto out; + } ret =folio_check_splittable (folio, new_order, split_type);if (ret) {VM_WARN_ONCE (ret == -EINVAL ,"Tried to split an unsplittable folio" ); -return ret; + goto out; }if (is_anon) {
_
Patches currently in -mm which might be from [email protected] are