The patch titled Subject: lib/xarray: introduce a new helper xas_get_order has been added to the -mm mm-unstable branch. Its filename is lib-xarray-introduce-a-new-helper-xas_get_order-v4.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/lib-xarray-introduce-a-new-helper-xas_get_order-v4.patch This patch will later appear in the mm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Kairui Song <kasong@xxxxxxxxxxx> Subject: lib/xarray: introduce a new helper xas_get_order Date: Tue, 16 Apr 2024 15:17:21 +0800 simplify comment, sparse warning fix, per Matthew Wilcox Link: https://lkml.kernel.org/r/20240416071722.45997-4-ryncsn@xxxxxxxxx Signed-off-by: Kairui Song <kasong@xxxxxxxxxxx> Cc: Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- lib/xarray.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/lib/xarray.c~lib-xarray-introduce-a-new-helper-xas_get_order-v4 +++ a/lib/xarray.c @@ -1750,7 +1750,7 @@ unlock: 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. @@ -1769,7 +1769,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++; } _ Patches currently in -mm which might be from kasong@xxxxxxxxxxx are mm-filemap-return-early-if-failed-to-allocate-memory-for-split.patch mm-filemap-clean-up-hugetlb-exclusion-code.patch lib-xarray-introduce-a-new-helper-xas_get_order.patch lib-xarray-introduce-a-new-helper-xas_get_order-v4.patch mm-filemap-optimize-filemap-folio-adding.patch