* [merged mm-stable] maple_tree-use-ma_dead_node-in-mte_dead_node.patch removed from -mm tree
@ 2025-03-17 5:11 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2025-03-17 5:11 UTC (permalink / raw)
To: mm-commits, skhan, Liam.Howlett, jserv, richard120310, akpm
The quilt patch titled
Subject: maple_tree: use ma_dead_node() in mte_dead_node()
has been removed from the -mm tree. Its filename was
maple_tree-use-ma_dead_node-in-mte_dead_node.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: I Hsin Cheng <richard120310@gmail.com>
Subject: maple_tree: use ma_dead_node() in mte_dead_node()
Date: Tue, 11 Feb 2025 15:18:50 +0800
Utilize ma_dead_node() in mte_dead_node(). It can prevent decoding the
maple enode for a second time. Use the "node" to find parent for
comparison.
Link: https://lkml.kernel.org/r/20250211071850.330632-1-richard120310@gmail.com
Signed-off-by: I Hsin Cheng <richard120310@gmail.com>
Reviewed-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
Cc: Ching-Chun (Jim) Huang <jserv@ccns.ncku.edu.tw>
Cc: Shuah khan <skhan@linuxfoundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
lib/maple_tree.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
--- a/lib/maple_tree.c~maple_tree-use-ma_dead_node-in-mte_dead_node
+++ a/lib/maple_tree.c
@@ -584,13 +584,10 @@ static __always_inline bool ma_dead_node
*/
static __always_inline bool mte_dead_node(const struct maple_enode *enode)
{
- struct maple_node *parent, *node;
+ struct maple_node *node;
node = mte_to_node(enode);
- /* Do not reorder reads from the node prior to the parent check */
- smp_rmb();
- parent = mte_parent(enode);
- return (parent == node);
+ return ma_dead_node(node);
}
/*
_
Patches currently in -mm which might be from richard120310@gmail.com are
lib-plistc-add-shortcut-for-plist_requeue.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-03-17 5:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-17 5:11 [merged mm-stable] maple_tree-use-ma_dead_node-in-mte_dead_node.patch removed from -mm tree Andrew Morton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.