linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] simplify split calculation
@ 2024-11-09 13:44 Wei Yang
  2024-11-09 13:44 ` [PATCH v2 1/2] maple_tree: " Wei Yang
  2024-11-09 13:44 ` [PATCH v2 2/2] maple_tree: only root node could be deficient Wei Yang
  0 siblings, 2 replies; 7+ messages in thread
From: Wei Yang @ 2024-11-09 13:44 UTC (permalink / raw)
  To: Liam.Howlett, akpm; +Cc: maple-tree, linux-mm, Wei Yang

In version 1 [1], we found current split would result into deficient node.

By discussion, current implementation would lead to jitter problem. Since this
is a rare case in real world, we decide to simplify the split calculation.

Patch 1: simplify split calculation
Patch 2: validate deficient node except for root node

[1]: https://lkml.kernel.org/r/20241020024628.22469-1-richard.weiyang@gmail.com

Wei Yang (2):
  maple_tree: simplify split calculation
  maple_tree: only root node could be deficient

 lib/maple_tree.c | 25 +++++++------------------
 1 file changed, 7 insertions(+), 18 deletions(-)

-- 
2.34.1



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

end of thread, other threads:[~2024-11-13  1:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-09 13:44 [PATCH v2 0/2] simplify split calculation Wei Yang
2024-11-09 13:44 ` [PATCH v2 1/2] maple_tree: " Wei Yang
2024-11-12 14:46   ` Liam R. Howlett
2024-11-13  1:15     ` Wei Yang
2024-11-13  1:44       ` Liam R. Howlett
2024-11-09 13:44 ` [PATCH v2 2/2] maple_tree: only root node could be deficient Wei Yang
2024-11-12 14:46   ` Liam R. Howlett

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