Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: Mattew Wilcox <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Kemeng Shi and committed by
Andrew Morton
1988b318 97db889b

-3
-3
lib/xarray.c
··· 128 128 unsigned int mark = 0; 129 129 unsigned int limit = xas->xa_offset + xas->xa_sibs + 1; 130 130 131 - if (!xas->xa_sibs) 132 - return; 133 - 134 131 do { 135 132 unsigned long *marks = xas->xa_node->marks[mark]; 136 133 if (find_next_bit(marks, limit, xas->xa_offset + 1) == limit)