mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] xarray: extract __xa_cmpxchg_raw
@ 2024-11-12 19:25 Tamir Duberstein
  2024-11-12 19:25 ` [PATCH 1/2] xarray: extract xa_zero_to_null Tamir Duberstein
  2024-11-12 19:25 ` [PATCH 2/2] xarray: extract helper from __xa_{insert,cmpxchg} Tamir Duberstein
  0 siblings, 2 replies; 3+ messages in thread
From: Tamir Duberstein @ 2024-11-12 19:25 UTC (permalink / raw)
  To: Andrew Morton, Matthew Wilcox
  Cc: linux-fsdevel, linux-kernel, Alice Ryhl, Andreas Hindborg,
	Tamir Duberstein

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.

Signed-off-by: Tamir Duberstein <tamird@gmail.com>
---
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,
-- 
Tamir Duberstein <tamird@gmail.com>


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

end of thread, other threads:[~2024-11-12 19:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-12 19:25 [PATCH 0/2] xarray: extract __xa_cmpxchg_raw Tamir Duberstein
2024-11-12 19:25 ` [PATCH 1/2] xarray: extract xa_zero_to_null Tamir Duberstein
2024-11-12 19:25 ` [PATCH 2/2] xarray: extract helper from __xa_{insert,cmpxchg} Tamir Duberstein

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

all inboxes | Powered by JetHome®