Skip to content

mm/vmalloc: minor cleanups

Ye Liu linux-mm lkml 2 versions – Applied

Status from this message: [merged mm-stable] mm-vmalloc-extract-show_busy_info-from-vmalloc_info_show.patch removed from -mm tree

Get series with b4
b4 am [email protected] change-id 20260914-vmalloc_study-b3fe7c738f2a

Versions newest first

  1. v2 Latest3 patches 0 repliesApplied 3/3
  2. v13 patches 10 repliesSuperseded

Changes in v2 from the cover letter

- Patch2: Keep space after (unsigned long) cast per Uladzislau's review.
- Patch3: Drop the NULL initialization of counters in show_busy_info.
- Link to v1: https://lore.kernel.org/r/[email protected]

Patches in v2 All 3 applied

#Subject and filesSizeRepliesApplied
1/3mm/vmalloc: group xa_init with vbq field initializationsmm/vmalloc.c+2 -10 repliesApplied
2/3mm/vmalloc: extract vmap_insert_free_area helpermm/vmalloc.c+18 -230 repliesApplied
3/3mm/vmalloc: extract show_busy_info from vmalloc_info_showmm/vmalloc.c+9 -30 repliesApplied

Reviews trailers per patch

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

PatchUladzislau Rezki (Sony)
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 v2 thread

Cover letter [PATCH v2 0/3] mm/vmalloc: minor cleanups

Small cleanup series for mm/vmalloc.c, no functional changes:

- Group xa_init() with the other vmap_block_queue field initializations in vmalloc_init(), instead of after the unrelated vfree_deferred setup.

- Extract vmap_insert_free_area() helper to deduplicate the allocate- and-insert pattern that appeared both inside the loop body and after the loop in vmap_init_free_space().

- Extract show_busy_info() from vmalloc_info_show(), mirroring the existing show_purge_info() pattern, so the top-level show function only orchestrates the two data sources.

---
Changes in v2:
- Patch2: Keep space after (unsigned long) cast per Uladzislau's review.
- Patch3: Drop the NULL initialization of counters in show_busy_info.
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Ye Liu (3):
mm/vmalloc: group xa_init with vbq field initializations mm/vmalloc: extract vmap_insert_free_area helper mm/vmalloc: extract show_busy_info from vmalloc_info_show

 mm/vmalloc.c | 56 +++++++++++++++++++++++++++++---------------------------
 1 file changed, 29 insertions(+), 27 deletions(-)

---
base-commit: 68142f986ff04b2b70b31db00f719bf690f64a9a
change-id: 20260914-vmalloc_study-b3fe7c738f2a

Best regards,

Signature · 1 line
Ye Liu <[email protected]>