[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20241101155028.11702-6-shikemeng@huaweicloud.com>
Date: Fri, 1 Nov 2024 23:50:27 +0800
From: Kemeng Shi <shikemeng@...weicloud.com>
To: akpm@...ux-foundation.org,
willy@...radead.org
Cc: linux-kernel@...r.kernel.org,
linux-fsdevel@...r.kernel.org
Subject: [PATCH 5/6] Xarray: remove repeat check in xas_squash_marks()
Caller of xas_squash_marks() has ensured xas->xa_sibs is non-zero. Just
remove repeat check of xas->xa_sibs in xas_squash_marks().
Signed-off-by: Kemeng Shi <shikemeng@...weicloud.com>
---
lib/xarray.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/lib/xarray.c b/lib/xarray.c
index 012d0ef5e847..76693aa6cb49 100644
--- a/lib/xarray.c
+++ b/lib/xarray.c
@@ -128,9 +128,6 @@ static void xas_squash_marks(const struct xa_state *xas)
unsigned int mark = 0;
unsigned int limit = xas->xa_offset + xas->xa_sibs + 1;
- if (!xas->xa_sibs)
- return;
-
do {
unsigned long *marks = xas->xa_node->marks[mark];
if (find_next_bit(marks, limit, xas->xa_offset + 1) == limit)
--
2.30.0
Powered by blists - more mailing lists