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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux