summaryrefslogtreecommitdiff
path: root/fs/xfs/libxfs/xfs_btree.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2024-02-22 23:35:15 +0300
committerDarrick J. Wong <djwong@kernel.org>2024-02-22 23:35:15 +0300
commitb20775ed644af0cbaee9632ad63ae6ec5ee502cc (patch)
tree42c52f97c30fb7914f683e8d3b7d9891bde1ee8e /fs/xfs/libxfs/xfs_btree.h
parent73a8fd93c421c4a6ac2c581c4d3478d3d68a0def (diff)
downloadlinux-b20775ed644af0cbaee9632ad63ae6ec5ee502cc.tar.xz
xfs: turn the allocbt cursor active field into a btree flag
Add a new XFS_BTREE_ALLOCBT_ACTIVE flag to replace the active field. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/libxfs/xfs_btree.h')
-rw-r--r--fs/xfs/libxfs/xfs_btree.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/xfs/libxfs/xfs_btree.h b/fs/xfs/libxfs/xfs_btree.h
index 17a0324a304e..b36530e56df9 100644
--- a/fs/xfs/libxfs/xfs_btree.h
+++ b/fs/xfs/libxfs/xfs_btree.h
@@ -236,9 +236,6 @@ struct xfs_btree_cur_ag {
unsigned int nr_ops; /* # record updates */
unsigned int shape_changes; /* # of extent splits */
} refc;
- struct {
- bool active; /* allocation cursor state */
- } abt;
};
};
@@ -321,6 +318,9 @@ xfs_btree_cur_sizeof(unsigned int nlevels)
/* For extent swap, ignore owner check in verifier (only for bmbt btrees) */
#define XFS_BTREE_BMBT_INVALID_OWNER (1U << 2)
+/* Cursor is active (only for allocbt btrees) */
+#define XFS_BTREE_ALLOCBT_ACTIVE (1U << 3)
+
#define XFS_BTREE_NOERROR 0
#define XFS_BTREE_ERROR 1