mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2024-12-28 16:52:18 +00:00
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(). Link: https://lkml.kernel.org/r/20241213122523.12764-5-shikemeng@huaweicloud.com Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com> Cc: Matthew Wilcox <willy@infradead.org> Cc: Baolin Wang <baolin.wang@linux.alibaba.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
be578f8b60
commit
1c9a909431
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user