summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_exchrange.h
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2024-04-15 14:54:17 -0700
committerDarrick J. Wong <djwong@kernel.org>2024-04-15 14:54:17 -0700
commit966ceafc7a437105ecfe1cadb3747b2965a260ca (patch)
tree656b079bc085e63c20833bf07e702481fcefc421 /fs/xfs/xfs_exchrange.h
parent6c08f434bd33f88cf169e9e43c7a5e42fb3f2118 (diff)
xfs: create deferred log items for file mapping exchanges
Now that we've created the skeleton of a log intent item to track and restart file mapping exchange operations, add the upper level logic to commit intent items and turn them into concrete work recorded in the log. This builds on the existing bmap update intent items that have been around for a while now. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/xfs_exchrange.h')
-rw-r--r--fs/xfs/xfs_exchrange.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/xfs/xfs_exchrange.h b/fs/xfs/xfs_exchrange.h
index f80369c7df5d..039abcca546e 100644
--- a/fs/xfs/xfs_exchrange.h
+++ b/fs/xfs/xfs_exchrange.h
@@ -27,4 +27,12 @@ struct xfs_exchrange {
long xfs_ioc_exchange_range(struct file *file,
struct xfs_exchange_range __user *argp);
+struct xfs_exchmaps_req;
+
+void xfs_exchrange_ilock(struct xfs_trans *tp, struct xfs_inode *ip1,
+ struct xfs_inode *ip2);
+void xfs_exchrange_iunlock(struct xfs_inode *ip1, struct xfs_inode *ip2);
+
+int xfs_exchrange_estimate(struct xfs_exchmaps_req *req);
+
#endif /* __XFS_EXCHRANGE_H__ */