]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
xfs: add a xfs_rtrmap_highest_rgbno helper
authorChristoph Hellwig <hch@lst.de>
Sat, 21 Dec 2024 08:40:17 +0000 (08:40 +0000)
committerChristoph Hellwig <hch@lst.de>
Mon, 3 Mar 2025 15:16:45 +0000 (08:16 -0700)
commitaacde95a37160b1462e46e0fd0cc7fd70e3bf1cc
tree2cfc5ce378a394b540a1c6533f1f98597df2520a
parentf42c652434de5e26e02798bf6a0c2a4a8627196b
xfs: add a xfs_rtrmap_highest_rgbno helper

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>
fs/xfs/libxfs/xfs_rtrmap_btree.c
fs/xfs/libxfs/xfs_rtrmap_btree.h