linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Reduce the space to be cleared for maple_big_node
@ 2024-09-08 14:05 Wei Yang
  2024-09-08 14:05 ` [PATCH v2 1/2] maple_tree: remove maple_big_node.parent Wei Yang
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Wei Yang @ 2024-09-08 14:05 UTC (permalink / raw)
  To: akpm, Liam.Howlett; +Cc: maple-tree, linux-mm, Wei Yang

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



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-09-25  2:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-08 14:05 [PATCH v2 0/2] Reduce the space to be cleared for maple_big_node Wei Yang
2024-09-08 14:05 ` [PATCH v2 1/2] maple_tree: remove maple_big_node.parent Wei Yang
2024-09-11  0:35   ` Liam R. Howlett
2024-09-08 14:05 ` [PATCH v2 2/2] maple_tree: memset maple_big_node as a whole Wei Yang
2024-09-11  0:36   ` Liam R. Howlett
2024-09-25  2:45 ` [PATCH v2 0/2] Reduce the space to be cleared for maple_big_node Wei Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox