diff options
| author | Tamir Duberstein <[email protected]> | 2024-11-12 19:25:37 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2025-01-13 04:20:58 +0000 |
| commit | 79ada2ae66153e285b3717ee4d4a56c8e517c1fa (patch) | |
| tree | 84f152bbbb8421ce9d693d54c0c7fa95cc6ce3e3 /lib/test_xarray.c | |
| parent | xarray: extract xa_zero_to_null (diff) | |
| download | kernel-79ada2ae66153e285b3717ee4d4a56c8e517c1fa.tar.gz kernel-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.
[[email protected]: fix __xa_erase()]
Link: https://lkml.kernel.org/r/CAJ-ks9kN_qddZ3Ne5d=cADu5POC1rHd4rQcbVSD_spnZOrLLZg@mail.gmail.com
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Tamir Duberstein <[email protected]>
Cc: Alice Ryhl <[email protected]>
Cc: Andreas Hindborg <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'lib/test_xarray.c')
0 files changed, 0 insertions, 0 deletions
