[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200422150256.23473-5-jack@suse.cz>
Date: Wed, 22 Apr 2020 17:02:37 +0200
From: Jan Kara <jack@...e.cz>
To: Matthew Wilcox <willy@...radead.org>
Cc: <linux-fsdevel@...r.kernel.org>,
LKML <linux-kernel@...r.kernel.org>, Jan Kara <jack@...e.cz>
Subject: [PATCH 04/23] xarray: Switch xa_store_range() to use xas_store_noinit()
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@...e.cz>
---
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
Powered by blists - more mailing lists