| To: | david@xxxxxxxxxxxxx, darrick.wong@xxxxxxxxxx |
|---|---|
| Subject: | [PATCH 20/71] xfs: log bmap intent items |
| From: | "Darrick J. Wong" <darrick.wong@xxxxxxxxxx> |
| Date: | Thu, 25 Aug 2016 16:48:39 -0700 |
| Cc: | linux-xfs@xxxxxxxxxxxxxxx, xfs@xxxxxxxxxxx |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <147216879156.4420.2446767701729565218.stgit@xxxxxxxxxxxxxxxx> |
| References: | <147216879156.4420.2446767701729565218.stgit@xxxxxxxxxxxxxxxx> |
| User-agent: | StGit/0.17.1-dirty |
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@xxxxxxxxxx>
---
libxfs/xfs_bmap.h | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/libxfs/xfs_bmap.h b/libxfs/xfs_bmap.h
index 9220b1d..c8160fe 100644
--- a/libxfs/xfs_bmap.h
+++ b/libxfs/xfs_bmap.h
@@ -209,5 +209,17 @@ struct xfs_bmbt_rec_host *
struct xfs_bmbt_irec *gotp,
struct xfs_bmbt_irec *prevp);
+enum xfs_bmap_intent_type {
+ XFS_BMAP_MAP,
+ 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__ */
|
| Previous by Date: | [PATCH 19/71] xfs: create bmbt update intent log items, Darrick J. Wong |
|---|---|
| Next by Date: | [PATCH 21/71] xfs: map an inode's offset to an exact physical block, Darrick J. Wong |
| Previous by Thread: | [PATCH 19/71] xfs: create bmbt update intent log items, Darrick J. Wong |
| Next by Thread: | [PATCH 21/71] xfs: map an inode's offset to an exact physical block, Darrick J. Wong |
| Indexes: | [Date] [Thread] [Top] [All Lists] |