summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_bmap_item.h
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2024-02-22 12:44:21 -0800
committerDarrick J. Wong <djwong@kernel.org>2024-02-22 12:44:21 -0800
commit80284115854e60686b2e0183b31bb303ae69aa8c (patch)
treeffc678ce8f66efb84faf83b45424ababa29a2fd9 /fs/xfs/xfs_bmap_item.h
parent5d3d0a6ad287746017b198a153d2de81ecc7491e (diff)
downloadlinux-80284115854e60686b2e0183b31bb303ae69aa8c.tar.gz
linux-80284115854e60686b2e0183b31bb303ae69aa8c.tar.bz2
linux-80284115854e60686b2e0183b31bb303ae69aa8c.zip
xfs: move xfs_bmap_defer_add to xfs_bmap_item.c
Move the code that adds the incore xfs_bmap_item deferred work data to a transaction live with the BUI log item code. This means that the file mapping code no longer has to know about the inner workings of the BUI log items. As a consequence, we can hide the _get_group helper. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/xfs_bmap_item.h')
-rw-r--r--fs/xfs/xfs_bmap_item.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/xfs/xfs_bmap_item.h b/fs/xfs/xfs_bmap_item.h
index 3fafd3881a0b..6fee6a508343 100644
--- a/fs/xfs/xfs_bmap_item.h
+++ b/fs/xfs/xfs_bmap_item.h
@@ -68,4 +68,8 @@ struct xfs_bud_log_item {
extern struct kmem_cache *xfs_bui_cache;
extern struct kmem_cache *xfs_bud_cache;
+struct xfs_bmap_intent;
+
+void xfs_bmap_defer_add(struct xfs_trans *tp, struct xfs_bmap_intent *bi);
+
#endif /* __XFS_BMAP_ITEM_H__ */