Linux RAID subsystem development
 help / color / mirror / Atom feed
* [PATCH v4 0/2] lib/raid: replace __get_free_pages() call with kvmalloc()
@ 2026-05-28  9:52 Mike Rapoport (Microsoft)
  2026-05-28  9:53 ` [PATCH v4 1/2] xor: use kmalloc() in calibrate_xor_blocks() Mike Rapoport (Microsoft)
  2026-05-28  9:53 ` [PATCH v4 2/2] raid6: use kmalloc() in raid6_select_algo() Mike Rapoport (Microsoft)
  0 siblings, 2 replies; 5+ messages in thread
From: Mike Rapoport (Microsoft) @ 2026-05-28  9:52 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Christoph Hellwig, David Laight, Li Nan, Mike Rapoport, Song Liu,
	Xiao Ni, Yu Kuai, linux-kernel, linux-mm, linux-raid,
	Christoph Hellwig

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/20260528-lib-v3-0-feccddf1cb6d@kernel.org
* restore kmalloc() per Christoph
* update changelog

v2: https://patch.msgid.link/20260526-lib-v2-0-ca3f0fc24b14@kernel.org
* replace kmalloc() with kvmalloc()

v1: https://patch.msgid.link/20260520-lib-v1-0-cb3045bef2d8@kernel.org

---
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,
--  
Sincerely yours,
Mike.


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

end of thread, other threads:[~2026-05-28 12:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-28  9:52 [PATCH v4 0/2] lib/raid: replace __get_free_pages() call with kvmalloc() Mike Rapoport (Microsoft)
2026-05-28  9:53 ` [PATCH v4 1/2] xor: use kmalloc() in calibrate_xor_blocks() Mike Rapoport (Microsoft)
2026-05-28  9:55   ` Hannes Reinecke
2026-05-28 12:47   ` Christoph Hellwig
2026-05-28  9:53 ` [PATCH v4 2/2] raid6: use kmalloc() in raid6_select_algo() Mike Rapoport (Microsoft)

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