Skip to content

lib/raid: replace __get_free_pages() call with kvmalloc()

Mike Rapoport (Microsoft) linux-mm linux-raid lkml 4 versions – Applied

Status from this message: [merged mm-nonmm-stable] raid6-use-kmalloc-in-raid6_select_algo.patch removed from -mm tree

Get series with b4
b4 am [email protected] change-id 20260520-lib-8afb92134307

Versions newest first

  1. v4 Latest2 patches 3 repliesApplied 2/2
  2. v32 patches 3 repliesSuperseded
  3. v22 patches 5 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches5 repliesSuperseded

Changes in v4 from the cover letter

* s/kvfee/kfree

Patches in v4 All 2 applied

#Subject and filesSizeRepliesApplied
1/2xor: use kmalloc() in calibrate_xor_blocks()lib/raid/xor/xor-core.c+3 -22 repliesApplied
2/2raid6: use kmalloc() in raid6_select_algo()lib/raid6/algos.c+3 -30 repliesApplied

Reviews trailers per patch

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

PatchChristoph HellwigHannes Reinecke
1/2R-b R-b
2/2R-b

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

Read the v4 thread

Cover letter [PATCH v4 0/2] lib/raid: replace __get_free_pages() call with kvmalloc()

This is a (tiny) part of larger work of replacing page allocator calls with k*malloc.

Nowadays the right way to say "I need a buffer" is kmalloc() rather than ancient and ugly __get_free_pages().

---
v4 changes:
* s/kvfee/kfree

v3: https://patch.msgid.link/[email protected]
* restore kmalloc() per Christoph
* update changelog

v2: https://patch.msgid.link/[email protected]
* replace kmalloc() with kvmalloc()

v1: https://patch.msgid.link/[email protected]

---
Mike Rapoport (Microsoft) (2):
xor: use kmalloc() in calibrate_xor_blocks()
raid6: use kmalloc() in raid6_select_algo()

 lib/raid/xor/xor-core.c | 5 +++--
 lib/raid6/algos.c       | 6 +++---
 2 files changed, 6 insertions(+), 5 deletions(-)

---
base-commit: 5d6919055dec134de3c40167a490f33c74c12581
change-id: 20260520-lib-8afb92134307

Best regards,

Signature · 2 lines
Sincerely yours,
Mike.