]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: Convert forking to use the sheaf interface sheaves-v6r2_fixes
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, 28 Aug 2025 20:25:17 +0000 (16:25 -0400)
commit11f739a93fe12cdb3059ba0ac8959301a7236e04
treec712dc8d36ee9cc24bdc66a982f30732ea3961ce
parentd26177514cd198fe46333a11a0e495f07e7a3dfe
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