Skip to content

xarray: extract __xa_cmpxchg_raw

Tamir Duberstein linux-fsdevel lkml 1 version New

Get series with b4
b4 am [email protected] change-id 20241023-xarray-insert-cmpxchg-507661adac1c

Versions newest first

  1. v1 Latest2 patches 0 repliesNew 1 of 2 applied

Patches in v1 1 of 2 applied

#Subject and filesSizeRepliesApplied
1/2xarray: extract xa_zero_to_nulllib/xarray.c+9 -80 repliesApplied
2/2xarray: extract helper from __xa_{insert,cmpxchg}lib/xarray.c+18 -190 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/2] xarray: extract __xa_cmpxchg_raw

This series reduces duplication between __xa_cmpxchg and __xa_insert by extracting a new function that does not coerce zero entries to null on the return path.

The new function may be used by the upcoming Rust xarray abstraction in its reservation API where it is useful to tell the difference between zero entries and null slots.

---
Tamir Duberstein (2):
xarray: extract xa_zero_to_null
xarray: extract helper from __xa_{insert,cmpxchg}

 lib/xarray.c | 50 +++++++++++++++++++++++++-------------------------
 1 file changed, 25 insertions(+), 25 deletions(-)

---
base-commit: 2d5404caa8c7bb5c4e0435f94b28834ae5456623
change-id: 20241023-xarray-insert-cmpxchg-507661adac1c

Best regards,

Signature · 1 line
Tamir Duberstein <[email protected]>