[PATCH v2 0/2] Reduce the space to be cleared for maple_big_node

Wei Yang richard.weiyang at gmail.com
Sun Sep 8 07:05:52 PDT 2024


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




More information about the maple-tree mailing list