Skip to content

Commit c221a9a

Browse files
morbidrsakdave
authored andcommitted
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 <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent e32dcdb commit c221a9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/btrfs/tests/raid-stripe-tree-tests.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,8 +478,8 @@ static int run_test(test_func_t test, u32 sectorsize, u32 nodesize)
478478
ret = PTR_ERR(root);
479479
goto out;
480480
}
481-
btrfs_set_super_compat_ro_flags(root->fs_info->super_copy,
482-
BTRFS_FEATURE_INCOMPAT_RAID_STRIPE_TREE);
481+
btrfs_set_super_incompat_flags(root->fs_info->super_copy,
482+
BTRFS_FEATURE_INCOMPAT_RAID_STRIPE_TREE);
483483
root->root_key.objectid = BTRFS_RAID_STRIPE_TREE_OBJECTID;
484484
root->root_key.type = BTRFS_ROOT_ITEM_KEY;
485485
root->root_key.offset = 0;

0 commit comments

Comments
 (0)