I'm trying to use radix tree to maintain one internal data for the driver. So what's the proper way to destroy the whole tree?
One thought is to traverse the tree with the method mentioned at: 1
For each node, free the item and delete its key from the tree.
The other question is, is radix_tree_for_each_slot()
safe with delete item inside the loop? Will delete trigger internal shrink and cause iteration failure?