Messages in this thread Patch in this message | | | From | Jan Kara <> | Subject | [PATCH 22/23] testing: Switch xa_store_order() to xas_store_noinit() | Date | Wed, 22 Apr 2020 17:02:55 +0200 |
| |
xa_store_order() is currently only used for non-NULL entries. So xas_store_noinit() is equivalent to xas_store() and we can safely use it in xa_store_order.
Signed-off-by: Jan Kara <jack@suse.cz> --- lib/test_xarray.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/test_xarray.c b/lib/test_xarray.c index fc16eac1cbb9..3adc29819b0d 100644 --- a/lib/test_xarray.c +++ b/lib/test_xarray.c @@ -76,7 +76,7 @@ static void *xa_store_order(struct xarray *xa, unsigned long index, do { xas_lock(&xas); - curr = xas_store(&xas, entry); + curr = xas_store_noinit(&xas, entry); xas_unlock(&xas); } while (xas_nomem(&xas, gfp)); -- 2.16.4
| |