]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: add a xfs_rtrmap_highest_rgbno helper
authorChristoph Hellwig <hch@lst.de>
Mon, 14 Apr 2025 05:35:52 +0000 (07:35 +0200)
committerAndrey Albershteyn <aalbersh@kernel.org>
Tue, 29 Apr 2025 16:09:57 +0000 (18:09 +0200)
commit475b5c5cb22dee268986baff29f7f5c644097e3d
tree7b16318af703d875a6dae7d2dac0ef88f072a748
parent5dc014c0672fc221f66e6ed56343191d428b7f57
xfs: add a xfs_rtrmap_highest_rgbno helper

Source kernel commit: aacde95a37160b1462e46e0fd0cc7fd70e3bf1cc

Add a helper to find the last offset mapped in the rtrmap.  This will be
used by the zoned code to find out where to start writing again on
conventional devices without hardware zone support.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
libxfs/xfs_rtrmap_btree.c
libxfs/xfs_rtrmap_btree.h