diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2016-10-03 12:11:21 -0400 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2016-10-03 12:11:21 -0400 |
commit | f997ee2137175f5b2bd7ced52acf1ca51f04f420 (patch) | |
tree | 541b4b069c0bfae742b59adce7052a21f423cd28 /fs/xfs/libxfs/xfs_refcount.h | |
parent | baf4bcacb715cebd412b2f4bb69989ef24496523 (diff) |
xfs: log refcount intent items
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@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/libxfs/xfs_refcount.h')
-rw-r--r-- | fs/xfs/libxfs/xfs_refcount.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/fs/xfs/libxfs/xfs_refcount.h b/fs/xfs/libxfs/xfs_refcount.h index 4dc335a1dc73..67b1c13fb714 100644 --- a/fs/xfs/libxfs/xfs_refcount.h +++ b/fs/xfs/libxfs/xfs_refcount.h | |||
@@ -27,4 +27,18 @@ extern int xfs_refcount_lookup_ge(struct xfs_btree_cur *cur, | |||
27 | extern int xfs_refcount_get_rec(struct xfs_btree_cur *cur, | 27 | extern int xfs_refcount_get_rec(struct xfs_btree_cur *cur, |
28 | struct xfs_refcount_irec *irec, int *stat); | 28 | struct xfs_refcount_irec *irec, int *stat); |
29 | 29 | ||
30 | enum xfs_refcount_intent_type { | ||
31 | XFS_REFCOUNT_INCREASE = 1, | ||
32 | XFS_REFCOUNT_DECREASE, | ||
33 | XFS_REFCOUNT_ALLOC_COW, | ||
34 | XFS_REFCOUNT_FREE_COW, | ||
35 | }; | ||
36 | |||
37 | struct xfs_refcount_intent { | ||
38 | struct list_head ri_list; | ||
39 | enum xfs_refcount_intent_type ri_type; | ||
40 | xfs_fsblock_t ri_startblock; | ||
41 | xfs_extlen_t ri_blockcount; | ||
42 | }; | ||
43 | |||
30 | #endif /* __XFS_REFCOUNT_H__ */ | 44 | #endif /* __XFS_REFCOUNT_H__ */ |