[PATCH 04/23] xarray: Switch xa_store_range() to use xas_store_noinit()
From: Jan Kara
Date: Wed Apr 22 2020 - 11:03:38 EST
There is only a single user of xa_store_range() and that is
mm/memremap.c which does not use marks at all. Just switch
xa_store_range() to use xas_store_noinit() to avoid implicit (and
unnecessary for all users) initialization of xarray marks.
Signed-off-by: Jan Kara <jack@xxxxxxx>
---
lib/xarray.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/xarray.c b/lib/xarray.c
index 2eb634e8bf15..49fafcee1c8e 100644
--- a/lib/xarray.c
+++ b/lib/xarray.c
@@ -1602,7 +1602,7 @@ void *xa_store_range(struct xarray *xa, unsigned long first,
}
do {
xas_set_range(&xas, first, last);
- xas_store(&xas, entry);
+ xas_store_noinit(&xas, entry);
if (xas_error(&xas))
goto unlock;
first += xas_size(&xas);
--
2.16.4