aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/libxfs/xfs_rtrmap_btree.h
diff options
context:
space:
mode:
authorChristoph Hellwig <[email protected]>2024-12-21 08:40:17 +0000
committerChristoph Hellwig <[email protected]>2025-03-03 15:16:45 +0000
commitaacde95a37160b1462e46e0fd0cc7fd70e3bf1cc (patch)
tree2cfc5ce378a394b540a1c6533f1f98597df2520a /fs/xfs/libxfs/xfs_rtrmap_btree.h
parentxfs: support XFS_BMAPI_REMAP in xfs_bmap_del_extent_delay (diff)
downloadkernel-aacde95a37160b1462e46e0fd0cc7fd70e3bf1cc.tar.gz
kernel-aacde95a37160b1462e46e0fd0cc7fd70e3bf1cc.zip
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 <[email protected]> Reviewed-by: "Darrick J. Wong" <[email protected]>
Diffstat (limited to 'fs/xfs/libxfs/xfs_rtrmap_btree.h')
-rw-r--r--fs/xfs/libxfs/xfs_rtrmap_btree.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/libxfs/xfs_rtrmap_btree.h b/fs/xfs/libxfs/xfs_rtrmap_btree.h
index 9d0915089891..e328fd62a149 100644
--- a/fs/xfs/libxfs/xfs_rtrmap_btree.h
+++ b/fs/xfs/libxfs/xfs_rtrmap_btree.h
@@ -207,4 +207,6 @@ struct xfs_btree_cur *xfs_rtrmapbt_mem_cursor(struct xfs_rtgroup *rtg,
int xfs_rtrmapbt_mem_init(struct xfs_mount *mp, struct xfbtree *xfbtree,
struct xfs_buftarg *btp, xfs_rgnumber_t rgno);
+xfs_rgblock_t xfs_rtrmap_highest_rgbno(struct xfs_rtgroup *rtg);
+
#endif /* __XFS_RTRMAP_BTREE_H__ */