]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: use ma_dead_node() in mte_dead_node()
authorI Hsin Cheng <richard120310@gmail.com>
Tue, 11 Feb 2025 07:18:50 +0000 (15:18 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 4 Mar 2025 05:49:50 +0000 (21:49 -0800)
commita2565e87ae0112e25f1a73ef460b56ea3897179a
tree52b020c4f05d253ea22497b0a9823c06842367f9
parentf2821bc106322a9c936dbf478480f1cf436d3242
maple_tree: use ma_dead_node() in mte_dead_node()

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