diff --git a/kernel-shared/ctree.h b/kernel-shared/ctree.h index 444d206e..1341a418 100644 --- a/kernel-shared/ctree.h +++ b/kernel-shared/ctree.h @@ -59,16 +59,6 @@ static inline unsigned long btrfs_chunk_item_size(int num_stripes) sizeof(struct btrfs_stripe) * (num_stripes - 1); } -#define BTRFS_SUPER_FLAG_CHANGING_DATA_CSUM (1ULL << 36) -#define BTRFS_SUPER_FLAG_CHANGING_META_CSUM (1ULL << 37) - -/* - * The fs is undergoing block group tree feature change. - * If no BLOCK_GROUP_TREE compat ro flag, it's changing from regular - * bg item in extent tree to new bg tree. - */ -#define BTRFS_SUPER_FLAG_CHANGING_BG_TREE (1ULL << 38) - static inline u32 __BTRFS_LEAF_DATA_SIZE(u32 nodesize) { return nodesize - sizeof(struct btrfs_header); diff --git a/kernel-shared/uapi/btrfs_tree.h b/kernel-shared/uapi/btrfs_tree.h index e2ac228b..27134625 100644 --- a/kernel-shared/uapi/btrfs_tree.h +++ b/kernel-shared/uapi/btrfs_tree.h @@ -758,6 +758,13 @@ struct btrfs_free_space_header { #define BTRFS_SUPER_FLAG_CHANGING_FSID (1ULL << 35) #define BTRFS_SUPER_FLAG_CHANGING_FSID_V2 (1ULL << 36) +/* + * Temporaray flags utilized by btrfs-progs to do offline conversion. They are + * rejected by kernel. Keep them all here to avoid conflicts. + */ +#define BTRFS_SUPER_FLAG_CHANGING_BG_TREE (1ULL << 38) +#define BTRFS_SUPER_FLAG_CHANGING_DATA_CSUM (1ULL << 39) +#define BTRFS_SUPER_FLAG_CHANGING_META_CSUM (1ULL << 40) /* * items in the extent btree are used to record the objectid of the