Skip to contentSkip to conversation

maple_tree-avoid-mas_erase-and-mtree_erase-failures.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Aug 25

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: maple_tree: avoid mas_erase() and mtree_erase() failures
has been removed from the -mm tree. Its filename was
maple_tree-avoid-mas_erase-and-mtree_erase-failures.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: "Liam R. Howlett (Oracle)" <[email protected]>
Subject: maple_tree: avoid mas_erase() and mtree_erase() failures
Date: Fri, 21 Aug 2026 15:26:22 -0400

Failures to remove entries using the two APIs to erase the entries may result in allocation failures. The failures may go unnoticed and an unexpected entry may remain. Instead, fall back to retrying with GFP_KERNEL | __GFP_NOFAIL so that the entry will be removed.

Cc Rik van Riel <[email protected]>
Cc Jason Gunthorpe <[email protected]>
Cc Boqun Feng <[email protected]>
Cc Breno Leitao <[email protected]>
Cc Chris Mason <[email protected]>
Cc Chuck Lever <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Joe Perches <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Waiman Long <[email protected]>
Cc Will Deacon <[email protected]>

---

 include/linux/maple_tree.h |    2 +
 lib/maple_tree.c           |   68 +++++++++++++++++++++++++----------
 2 files changed, 52 insertions(+), 18 deletions(-)
include/linux/maple_tree.h renamed from include/linux/maple_tree.h~maple_tree-avoid-mas_erase-and-mtree_erase-failures +2 -0
@@ -570,6 +570,8 @@ int mas_alloc_cyclic(struct ma_state *ma
 		unsigned long *next, gfp_t gfp);
 
 bool mas_nomem(struct ma_state *mas, gfp_t gfp);
+bool mas_nomem_nofail(struct ma_state *mas, unsigned long index,
+		      unsigned long last);
 void mas_pause(struct ma_state *mas);
 void maple_tree_init(void);
 void mas_destroy(struct ma_state *mas);
lib/maple_tree.c renamed from lib/maple_tree.c~maple_tree-avoid-mas_erase-and-mtree_erase-failures +50 -18

111 lines not on this page · raw message

_

Patches currently in -mm which might be from [email protected] are