]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: Convert forking to use the sheaf interface sheaves-v6r2_fixes_nobulk
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Sun, 8 Dec 2024 02:29:07 +0000 (21:29 -0500)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Thu, 4 Sep 2025 17:50:09 +0000 (13:50 -0400)
commit9b906376adc11f6fa51c555ac25dd60ee2f05b49
treea17f03875a884d357d023b9418997a42a1222800
parentbcc3b08729a4a101a408b23682a60a8f860a5031
maple_tree: Convert forking to use the sheaf interface

Use the generic interface which should result in less bulk allocations
during a forking.

A part of this is to abstract the freeing of the sheaf or maple state
allocations into its own function so mas_destroy() and the tree
duplication code can use the same functionality to return any unused
resources.

Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
Reviewed-by: Suren Baghdasaryan <surenb@google.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
lib/maple_tree.c