aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_btree.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_btree.h')
-rw-r--r--fs/xfs/xfs_btree.h19
1 files changed, 12 insertions, 7 deletions
diff --git a/fs/xfs/xfs_btree.h b/fs/xfs/xfs_btree.h
index c8473c7ef45e..06729b67ad58 100644
--- a/fs/xfs/xfs_btree.h
+++ b/fs/xfs/xfs_btree.h
@@ -121,15 +121,18 @@ union xfs_btree_rec {
121/* 121/*
122 * For logging record fields. 122 * For logging record fields.
123 */ 123 */
124#define XFS_BB_MAGIC 0x01 124#define XFS_BB_MAGIC (1 << 0)
125#define XFS_BB_LEVEL 0x02 125#define XFS_BB_LEVEL (1 << 1)
126#define XFS_BB_NUMRECS 0x04 126#define XFS_BB_NUMRECS (1 << 2)
127#define XFS_BB_LEFTSIB 0x08 127#define XFS_BB_LEFTSIB (1 << 3)
128#define XFS_BB_RIGHTSIB 0x10 128#define XFS_BB_RIGHTSIB (1 << 4)
129#define XFS_BB_BLKNO 0x20 129#define XFS_BB_BLKNO (1 << 5)
130#define XFS_BB_LSN (1 << 6)
131#define XFS_BB_UUID (1 << 7)
132#define XFS_BB_OWNER (1 << 8)
130#define XFS_BB_NUM_BITS 5 133#define XFS_BB_NUM_BITS 5
131#define XFS_BB_ALL_BITS ((1 << XFS_BB_NUM_BITS) - 1) 134#define XFS_BB_ALL_BITS ((1 << XFS_BB_NUM_BITS) - 1)
132#define XFS_BB_NUM_BITS_CRC 8 135#define XFS_BB_NUM_BITS_CRC 9
133#define XFS_BB_ALL_BITS_CRC ((1 << XFS_BB_NUM_BITS_CRC) - 1) 136#define XFS_BB_ALL_BITS_CRC ((1 << XFS_BB_NUM_BITS_CRC) - 1)
134 137
135/* 138/*
@@ -442,6 +445,8 @@ int xfs_btree_new_iroot(struct xfs_btree_cur *, int *, int *);
442int xfs_btree_insert(struct xfs_btree_cur *, int *); 445int xfs_btree_insert(struct xfs_btree_cur *, int *);
443int xfs_btree_delete(struct xfs_btree_cur *, int *); 446int xfs_btree_delete(struct xfs_btree_cur *, int *);
444int xfs_btree_get_rec(struct xfs_btree_cur *, union xfs_btree_rec **, int *); 447int xfs_btree_get_rec(struct xfs_btree_cur *, union xfs_btree_rec **, int *);
448int xfs_btree_change_owner(struct xfs_btree_cur *cur, __uint64_t new_owner,
449 struct list_head *buffer_list);
445 450
446/* 451/*
447 * btree block CRC helpers 452 * btree block CRC helpers