aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_rtalloc.h
diff options
context:
space:
mode:
authorDarrick J. Wong <[email protected]>2024-11-21 00:21:16 +0000
committerDarrick J. Wong <[email protected]>2024-12-23 21:06:17 +0000
commitfd97fe1112088c16594dcd45e809f1643e623309 (patch)
tree743b192b242e8db2b4e84332e494d8013fef6fac /fs/xfs/xfs_rtalloc.h
parentxfs: check for shared rt extents when rebuilding rt file's data fork (diff)
downloadkernel-fd97fe1112088c16594dcd45e809f1643e623309.tar.gz
kernel-fd97fe1112088c16594dcd45e809f1643e623309.zip
xfs: fix CoW forks for realtime files
Port the copy on write fork repair to realtime files. Signed-off-by: "Darrick J. Wong" <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'fs/xfs/xfs_rtalloc.h')
-rw-r--r--fs/xfs/xfs_rtalloc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/xfs/xfs_rtalloc.h b/fs/xfs/xfs_rtalloc.h
index 9044f7226ab6..0d95b29092c9 100644
--- a/fs/xfs/xfs_rtalloc.h
+++ b/fs/xfs/xfs_rtalloc.h
@@ -77,4 +77,9 @@ xfs_growfs_check_rtgeom(const struct xfs_mount *mp,
}
#endif /* CONFIG_XFS_RT */
+int xfs_rtallocate_rtgs(struct xfs_trans *tp, xfs_fsblock_t bno_hint,
+ xfs_rtxlen_t minlen, xfs_rtxlen_t maxlen, xfs_rtxlen_t prod,
+ bool wasdel, bool initial_user_data, xfs_rtblock_t *bno,
+ xfs_extlen_t *blen);
+
#endif /* __XFS_RTALLOC_H__ */