[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20241112-xarray-insert-cmpxchg-v1-0-dc2bdd8c4136@gmail.com>
Date: Tue, 12 Nov 2024 14:25:35 -0500
From: Tamir Duberstein <tamird@...il.com>
To: Andrew Morton <akpm@...ux-foundation.org>,
Matthew Wilcox <willy@...radead.org>
Cc: linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org,
Alice Ryhl <aliceryhl@...gle.com>, Andreas Hindborg <a.hindborg@...nel.org>,
Tamir Duberstein <tamird@...il.com>
Subject: [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.
Signed-off-by: Tamir Duberstein <tamird@...il.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@...il.com>
Powered by blists - more mailing lists