mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 01:53:29 +02:00
btrfs: selftests: correct RAID stripe-tree feature flag setting
RAID stripe-tree is an incompatible feature not a read-only compatible, so set the incompat flag not a compat_ro one in the selftest code. Subsequent changes in btrfs_delete_raid_extent() will start checking for this flag. Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
e32dcdb0af
commit
c221a9a29d
|
|
@ -478,8 +478,8 @@ static int run_test(test_func_t test, u32 sectorsize, u32 nodesize)
|
|||
ret = PTR_ERR(root);
|
||||
goto out;
|
||||
}
|
||||
btrfs_set_super_compat_ro_flags(root->fs_info->super_copy,
|
||||
BTRFS_FEATURE_INCOMPAT_RAID_STRIPE_TREE);
|
||||
btrfs_set_super_incompat_flags(root->fs_info->super_copy,
|
||||
BTRFS_FEATURE_INCOMPAT_RAID_STRIPE_TREE);
|
||||
root->root_key.objectid = BTRFS_RAID_STRIPE_TREE_OBJECTID;
|
||||
root->root_key.type = BTRFS_ROOT_ITEM_KEY;
|
||||
root->root_key.offset = 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user