Skip to content

simplify split calculation

Wei Yang linux-mm stable 2 versions – Applied

Status from this message: [merged mm-stable] maple_tree-only-root-node-could-be-deficient.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 6 repliesApplied 3/3
  2. v22 patches 4 repliesSuperseded

Patches in v3 All 3 applied

#Subject and filesSizeRepliesApplied
1/3maple_tree: simplify split calculationlib/maple_tree.c+6 -171 replyApplied
2/3maple_tree: add a test check deficient nodelib/test_maple_tree.c+28 -01 replyApplied
3/3maple_tree: only root node could be deficientlib/maple_tree.c+1 -10 repliesApplied

Reviews trailers per patch

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

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

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

Read the v3 thread

Cover letter [PATCH v3 0/3] simplify split calculation

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: add a test case to check deficient node Patch 3: validate deficient node except for root node

[1]: https://lkml.kernel.org/r/[email protected]

Wei Yang (3):
maple_tree: simplify split calculation
maple_tree: add a test check deficient node
maple_tree: only root node could be deficient

 lib/maple_tree.c      | 25 +++++++------------------
 lib/test_maple_tree.c | 28 ++++++++++++++++++++++++++++
 2 files changed, 35 insertions(+), 18 deletions(-)
Signature · 1 line
2.34.1