Skip to content

lib/scatterlist: sgl API fixes and cleanups

Tvrtko Ursulin lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6lib/scatterlist: Use natural long for sgl_alloc(_order) length parameterinclude/linux/scatterlist.h lib/scatterlist.c+9 -91 reply
2/6lib/scatterlist: Use consistent types in sgl APIinclude/linux/scatterlist.h lib/scatterlist.c+8 -61 reply
3/6lib/scatterlist: Skip requesting zeroed allocations in sgl_alloc_orderlib/scatterlist.c+1 -21 reply
4/6lib/scatterlist: Do not leak pages when high-order allocation failslib/scatterlist.c+4 -21 reply
5/6lib/scatterlist: Use appropriate type for elem_len in sgl_alloc_orderlib/scatterlist.c+2 -31 reply
6/6lib/scatterlist: Fix overflow check in sgl_alloc_orderlib/scatterlist.c+1 -11 reply

Reviews trailers per patch

5 of 6 patches have a Reviewed-by or Acked-by.

PatchBart Van Assche
1/6R-b
2/6R-b
3/6R-b
4/6
5/6R-b
6/6R-b

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

Read the v1 thread

Cover letter [PATCH 0/6] lib/scatterlist: sgl API fixes and cleanups

From: Tvrtko Ursulin <[email protected]>

Mostly same fixes and cleanups I've sent earlier in the year, but with some patches dropped and some split into smaller ones as per request.

Tvrtko Ursulin (6):
lib/scatterlist: Use natural long for sgl_alloc(_order) length
parameter
lib/scatterlist: Use consistent types in sgl API lib/scatterlist: Skip requesting zeroed allocations in sgl_alloc_order lib/scatterlist: Do not leak pages when high-order allocation fails lib/scatterlist: Use appropriate type for elem_len in sgl_alloc_order lib/scatterlist: Fix overflow check in sgl_alloc_order

 include/linux/scatterlist.h | 13 +++++++------
 lib/scatterlist.c           | 33 +++++++++++++++++----------------
 2 files changed, 24 insertions(+), 22 deletions(-)
Signature · 1 line
2.17.1