[PATCH 22/23] testing: Switch xa_store_order() to xas_store_noinit()

From: Jan Kara
Date: Wed Apr 22 2020 - 11:03:47 EST


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@xxxxxxx>
---
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