]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs: log bmap intent items
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 25 Oct 2016 01:30:19 +0000 (12:30 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 25 Oct 2016 01:30:19 +0000 (12:30 +1100)
Source kernel commit: 77d61fe45e720577a2cc0e9580fbc57d8faa7232

Provide a mechanism for higher levels to create BUI/BUD items, submit
them to the log, and a stub function to deal with recovered BUI items.
These parts will be connected to the rmapbt in a later patch.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
libxfs/xfs_bmap.h

index 1067fe364181f5826b2d2154ad80c1f557556625..2d238a580169a4ad42aa480551fafe87c3e582d9 100644 (file)
@@ -214,4 +214,17 @@ struct xfs_bmbt_rec_host *
                                struct xfs_bmbt_irec *prevp);
 
 
+enum xfs_bmap_intent_type {
+       XFS_BMAP_MAP = 1,
+       XFS_BMAP_UNMAP,
+};
+
+struct xfs_bmap_intent {
+       struct list_head                        bi_list;
+       enum xfs_bmap_intent_type               bi_type;
+       struct xfs_inode                        *bi_owner;
+       int                                     bi_whichfork;
+       struct xfs_bmbt_irec                    bi_bmap;
+};
+
 #endif /* __XFS_BMAP_H__ */