]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: Use mas_topiary_subtree() in mas_topiary_replace()
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Fri, 19 Jul 2024 20:25:02 +0000 (16:25 -0400)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Thu, 9 Oct 2025 18:40:38 +0000 (14:40 -0400)
commit6d92df6a2b51f23e07731ee02f495788e954a68c
tree6aaabbab9aa25229fb5f8b100a55987a49145e66
parent363bc71ffb5e7f69af340ef1128376d2cd42cec2
maple_tree: Use mas_topiary_subtree() in mas_topiary_replace()

Instead of building a linked list of subtrees to later destroy, do the
destroy once a subtree is identified as replaced.  This will evict the
readers sooner from the dead subtree, but since the common ancestor is
already marked as dead, the transition to the new data will still occur
giving the readers a consistent view of either old or new data.  The
readers will not be able to transition back from new to old data.

Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
lib/maple_tree.c