diff options
author | 2024-11-12 14:25:37 -0500 | |
---|---|---|
committer | 2025-01-12 20:20:58 -0800 | |
commit | 79ada2ae66153e285b3717ee4d4a56c8e517c1fa (patch) | |
tree | 84f152bbbb8421ce9d693d54c0c7fa95cc6ce3e3 /kernel/resource.c | |
parent | xarray: extract xa_zero_to_null (diff) | |
download | wireguard-linux-79ada2ae66153e285b3717ee4d4a56c8e517c1fa.tar.xz wireguard-linux-79ada2ae66153e285b3717ee4d4a56c8e517c1fa.zip |
xarray: extract helper from __xa_{insert,cmpxchg}
Reduce code duplication by extracting a static inline function. This
function is identical to __xa_cmpxchg with the exception that it does not
coerce zero entries to null on the return path.
[tamird@gmail.com: fix __xa_erase()]
Link: https://lkml.kernel.org/r/CAJ-ks9kN_qddZ3Ne5d=cADu5POC1rHd4rQcbVSD_spnZOrLLZg@mail.gmail.com
Link: https://lkml.kernel.org/r/20241112-xarray-insert-cmpxchg-v1-2-dc2bdd8c4136@gmail.com
Signed-off-by: Tamir Duberstein <tamird@gmail.com>
Cc: Alice Ryhl <aliceryhl@google.com>
Cc: Andreas Hindborg <a.hindborg@kernel.org>
Cc: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'kernel/resource.c')
0 files changed, 0 insertions, 0 deletions