Files
erofs-linux/lib
Wei Yang ea9b77f98d maple_tree: fix mt_destroy_walk() on root leaf node
On destroy, we should set each node dead.  But current code miss this when
the maple tree has only the root node.

The reason is mt_destroy_walk() leverage mte_destroy_descend() to set node
dead, but this is skipped since the only root node is a leaf.

Fixes this by setting the node dead if it is a leaf.

Link: https://lore.kernel.org/all/[email protected]/
Link: https://lkml.kernel.org/r/[email protected]
Fixes: 54a611b605 ("Maple Tree: add new data structure")
Signed-off-by: Wei Yang <[email protected]>
Signed-off-by: Liam R. Howlett <[email protected]>
Reviewed-by: Dev Jain <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
2025-07-09 21:07:52 -07:00
..
…
…
…
…
…
2025-03-16 22:30:49 -07:00
2025-04-11 17:32:38 -07:00
…
…
2025-04-11 17:32:37 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-05-15 20:24:40 +02:00
…
…
…
2025-03-25 10:18:31 -03:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-03-17 12:17:00 -07:00
2025-05-11 17:54:04 -07:00
…
…
…
…
…
…
2025-03-25 10:18:31 -03:00
…
…
…
…
…
…