diff options
| author | Kemeng Shi <[email protected]> | 2024-12-13 12:25:22 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2025-01-25 06:47:27 +0000 |
| commit | 1988b318b32d3a0260e05bf6643990230df35843 (patch) | |
| tree | 85b07b8e4e226578611261a956254d7a5728f098 /lib/xarray.c | |
| parent | Xarray: distinguish large entries correctly in xas_split_alloc() (diff) | |
| download | kernel-1988b318b32d3a0260e05bf6643990230df35843.tar.gz kernel-1988b318b32d3a0260e05bf6643990230df35843.zip | |
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/[email protected]
Signed-off-by: Kemeng Shi <[email protected]>
Cc: Mattew Wilcox <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'lib/xarray.c')
| -rw-r--r-- | lib/xarray.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/xarray.c b/lib/xarray.c index ecd2e4f71aa8..2386423865a0 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) |
