Loading fs/btrfs/extent-tree.c +2 −8 Original line number Original line Diff line number Diff line Loading @@ -4336,15 +4336,9 @@ static u64 get_profile_num_devs(struct btrfs_fs_info *fs_info, u64 type) { { u64 num_dev; u64 num_dev; if (type & (BTRFS_BLOCK_GROUP_RAID10 | num_dev = btrfs_raid_array[btrfs_bg_flags_to_raid_index(type)].devs_max; BTRFS_BLOCK_GROUP_RAID0 | if (!num_dev) BTRFS_BLOCK_GROUP_RAID5 | BTRFS_BLOCK_GROUP_RAID6)) num_dev = fs_info->fs_devices->rw_devices; num_dev = fs_info->fs_devices->rw_devices; else if (type & BTRFS_BLOCK_GROUP_RAID1) num_dev = 2; else num_dev = 1; /* DUP or single */ return num_dev; return num_dev; } } Loading Loading
fs/btrfs/extent-tree.c +2 −8 Original line number Original line Diff line number Diff line Loading @@ -4336,15 +4336,9 @@ static u64 get_profile_num_devs(struct btrfs_fs_info *fs_info, u64 type) { { u64 num_dev; u64 num_dev; if (type & (BTRFS_BLOCK_GROUP_RAID10 | num_dev = btrfs_raid_array[btrfs_bg_flags_to_raid_index(type)].devs_max; BTRFS_BLOCK_GROUP_RAID0 | if (!num_dev) BTRFS_BLOCK_GROUP_RAID5 | BTRFS_BLOCK_GROUP_RAID6)) num_dev = fs_info->fs_devices->rw_devices; num_dev = fs_info->fs_devices->rw_devices; else if (type & BTRFS_BLOCK_GROUP_RAID1) num_dev = 2; else num_dev = 1; /* DUP or single */ return num_dev; return num_dev; } } Loading