btrfs-progs: add the incompat flag for extent tree v2

I will have a lot of preparatory patches to reduce the review pain of
this large feature.  In order to enable that work define the incompat
flag.  Once all of the work lands to support the feature there will be a
patch to actually enable us to select it and manipulate file systems
with that incompat flag set.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
Josef Bacik 2021-08-23 16:14:55 -04:00 committed by David Sterba
parent 4b6cf2a3eb
commit 79e534def9
2 changed files with 6 additions and 3 deletions

View File

@ -496,6 +496,7 @@ struct btrfs_super_block {
#define BTRFS_FEATURE_INCOMPAT_METADATA_UUID (1ULL << 10)
#define BTRFS_FEATURE_INCOMPAT_RAID1C34 (1ULL << 11)
#define BTRFS_FEATURE_INCOMPAT_ZONED (1ULL << 12)
#define BTRFS_FEATURE_INCOMPAT_EXTENT_TREE_V2 (1ULL << 13)
#define BTRFS_FEATURE_COMPAT_SUPP 0ULL

View File

@ -251,9 +251,11 @@ static int recow_roots(struct btrfs_trans_handle *trans,
ret = __recow_root(trans, info->csum_root);
if (ret)
return ret;
ret = __recow_root(trans, info->free_space_root);
if (ret)
return ret;
if (info->free_space_root) {
ret = __recow_root(trans, info->free_space_root);
if (ret)
return ret;
}
return 0;
}