Skip to content

Reduce the space to be cleared for maple_big_node

Wei Yang linux-mm 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 3 repliesIn review 1 of 2 applied
  2. v12 patches 2 repliesSuperseded

Patches in v2 1 of 2 applied

#Subject and filesSizeRepliesApplied
1/2maple_tree: remove maple_big_node.parentlib/maple_tree.c+0 -11 reply
2/2maple_tree: memset maple_big_node as a wholelib/maple_tree.c+1 -41 replyApplied

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchLiam R. Howlett
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

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

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(-)
Signature · 1 line
2.34.1