Skip to content

Fix mas_empty_area() search

Liam R. Howlett linux-mm lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 0 repliesNew
  2. v13 patches 9 repliesSuperseded 2 of 3 applied

Changes in v3 from the cover letter

- Addressed Peng Zhang's concerns around limit checking.
- Updated testing code to work with size of 1 and added tests for this case.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4maple_tree: Make maple state reusable after mas_empty_area_rev()lib/maple_tree.c+23 -180 replies
2/4maple_tree: Update mtree_alloc_rrange() and mtree_alloc_range() testinglib/test_maple_tree.c+20 -70 replies
3/4maple_tree: Fix mas_empty_area() searchlib/maple_tree.c+11 -90 replies
4/4mm/mmap: Regression fix for unmapped_area{_topdown}mm/mmap.c+43 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/4] Fix mas_empty_area() search

mas_empty_area() search could potentially return a sub-optimal position for a VMAs as it is coded. This patch set is to address the issue by altering the maple tree search and the mmap call into that search.

Changes from v2:
- Addressed Peng Zhang's concerns around limit checking.
- Updated testing code to work with size of 1 and added tests for this case.

v2: https://lore.kernel.org/linux-mm/[email protected]/
v1: https://lore.kernel.org/linux-mm/[email protected]/

Liam R. Howlett (4):
maple_tree: Make maple state reusable after mas_empty_area_rev()
maple_tree: Update mtree_alloc_rrange() and mtree_alloc_range()
testing
maple_tree: Fix mas_empty_area() search
mm/mmap: Regression fix for unmapped_area{_topdown}

 lib/maple_tree.c      | 61 ++++++++++++++++++++++++-------------------
 lib/test_maple_tree.c | 27 ++++++++++++++-----
 mm/mmap.c             | 48 ++++++++++++++++++++++++++++++----
 3 files changed, 97 insertions(+), 39 deletions(-)
Signature · 1 line
2.39.2