]> Gentwo Git Trees - linux/.git/commit
maple_tree: Convert forking to use the sheaf interface
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Wed, 3 Sep 2025 13:00:03 +0000 (15:00 +0200)
committerVlastimil Babka <vbabka@suse.cz>
Mon, 29 Sep 2025 07:40:49 +0000 (09:40 +0200)
commit719a42e563bb087758500e43e67a57b27f303c4c
treeaf54f6eefebf6a8dd2e2a44333e3f23a78f40bec
parent6bf377b06c08049d0f4042493df302285e45165e
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.

[andriy.shevchenko@linux.intel.com: remove unused mt_alloc_bulk()]
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