Found current code may clear maple_big_node redundantly. First we define a filed parent, which is never used. After removing this, we reduce the size of memory to be clear on memset. Then mast_fill_bnode clear part of the structure twice, since slot and gap shares some space. By clearing the whole structure, we can avoid it. Wei Yang (2): maple_tree: remove maple_big_node.parent maple_tree: memset maple_big_node as a whole lib/maple_tree.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) -- 2.34.1