| To: | david@xxxxxxxxxxxxx, darrick.wong@xxxxxxxxxx |
|---|---|
| Subject: | [PATCH 080/145] xfs: log refcount intent items |
| From: | "Darrick J. Wong" <darrick.wong@xxxxxxxxxx> |
| Date: | Thu, 16 Jun 2016 18:39:14 -0700 |
| Cc: | xfs@xxxxxxxxxxx |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <146612704434.16048.12932915166928562654.stgit@xxxxxxxxxxxxxxxx> |
| References: | <146612704434.16048.12932915166928562654.stgit@xxxxxxxxxxxxxxxx> |
| User-agent: | StGit/0.17.1-dirty |
Provide a mechanism for higher levels to create CUI/CUD items, submit
them to the log, and a stub function to deal with recovered CUI items.
These parts will be connected to the refcountbt in a later patch.
Signed-off-by: Darrick J. Wong <darrick.wong@xxxxxxxxxx>
---
libxfs/xfs_refcount.h | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/libxfs/xfs_refcount.h b/libxfs/xfs_refcount.h
index 8ea65c6..0b36c1d 100644
--- a/libxfs/xfs_refcount.h
+++ b/libxfs/xfs_refcount.h
@@ -27,4 +27,18 @@ extern int xfs_refcountbt_lookup_ge(struct xfs_btree_cur
*cur,
extern int xfs_refcountbt_get_rec(struct xfs_btree_cur *cur,
struct xfs_refcount_irec *irec, int *stat);
+enum xfs_refcount_intent_type {
+ XFS_REFCOUNT_INCREASE,
+ XFS_REFCOUNT_DECREASE,
+ XFS_REFCOUNT_ALLOC_COW,
+ XFS_REFCOUNT_FREE_COW,
+};
+
+struct xfs_refcount_intent {
+ struct list_head ri_list;
+ enum xfs_refcount_intent_type ri_type;
+ xfs_fsblock_t ri_startblock;
+ xfs_extlen_t ri_blockcount;
+};
+
#endif /* __XFS_REFCOUNT_H__ */
|
| Previous by Date: | [PATCH 079/145] xfs: create refcount update intent log items, Darrick J. Wong |
|---|---|
| Next by Date: | [PATCH 081/145] xfs: adjust refcount of an extent of blocks in refcount btree, Darrick J. Wong |
| Previous by Thread: | [PATCH 079/145] xfs: create refcount update intent log items, Darrick J. Wong |
| Next by Thread: | [PATCH 081/145] xfs: adjust refcount of an extent of blocks in refcount btree, Darrick J. Wong |
| Indexes: | [Date] [Thread] [Top] [All Lists] |