
From: Kairui Song <kasong@tencent.com> maillist inclusion category: performance bugzilla: https://gitee.com/openeuler/kernel/issues/I9JAY9 CVE: NA Reference: https://lore.kernel.org/linux-mm/20240416071722.45997-1-ryncsn@gmail.com/#t -------------------------------- simplify comment, sparse warning fix, per Matthew Wilcox Link: https://lkml.kernel.org/r/20240416071722.45997-4-ryncsn@gmail.com Signed-off-by: Kairui Song <kasong@tencent.com> Cc: Matthew Wilcox (Oracle) <willy@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: ZhangPeng <zhangpeng362@huawei.com> --- lib/xarray.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/xarray.c b/lib/xarray.c index 84faa433cd24..1c87d871cacf 100644 --- a/lib/xarray.c +++ b/lib/xarray.c @@ -1751,7 +1751,7 @@ void *xa_store_range(struct xarray *xa, unsigned long first, EXPORT_SYMBOL(xa_store_range); /** - * xas_get_order() - Get the order of an loaded entry after xas_load. + * xas_get_order() - Get the order of an entry. * @xas: XArray operation state. * * Called after xas_load, the xas should not be in an error state. @@ -1770,7 +1770,7 @@ int xas_get_order(struct xa_state *xas) if (slot >= XA_CHUNK_SIZE) break; - if (!xa_is_sibling(xas->xa_node->slots[slot])) + if (!xa_is_sibling(xa_entry(xas->xa, xas->xa_node, slot))) break; order++; } -- 2.25.1