Re: [PATCH v4 0/2] xfs: optimize getfsmap by reusing and advancing the refcount cursor

From: Carlos Maiolino

Date: Fri Dec 04 2026 - 05:14:05 EST


On Wed, 02 Dec 2026 09:21:50 +0800, zhangshida2026@xxxxxxx wrote:
> From: Shida Zhang <zhangshida@xxxxxxxxxx>
>
> GETFSMAP walks the rmap btree in increasing startblock order and asks
> the refcount btree whether each record's blocks are shared. Every
> record pays a cursor alloc/free and a root-to-leaf btree search, even
> though the next query is almost always the next refcount record.
>
> [...]

Applied to for-next, thanks!

[1/2] xfs: factor out a xfs_getfsmap_del_cursors helper
commit: ba384c4130f617764f5d375fdc006ab4de45e2c8
[2/2] xfs: optimize getfsmap by reusing and advancing the refcount cursor
commit: ab1a77ab136c24fdbc81291530963d2be5d482d9

Best regards,
--
Carlos Maiolino <cem@xxxxxxxxxx>