Skip to content

Commit c9f01bf

Browse files
Miao XieJosef Bacik
authored andcommitted
Btrfs: fix wrong max device number for single profile
The max device number of single profile is 1, not 0 (0 means 'as many as possible'). Fix it. Cc: Liu Bo <bo.li.liu@oracle.com> Signed-off-by: Miao Xie <miaox@cn.fujitsu.com> Reviewed-by: Liu Bo <bo.li.liu@oracle.com> Signed-off-by: Josef Bacik <jbacik@fusionio.com>
1 parent 2cba30f commit c9f01bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/btrfs/volumes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3507,7 +3507,7 @@ struct btrfs_raid_attr btrfs_raid_array[BTRFS_NR_RAID_TYPES] = {
35073507
{ 1, 1, 2, 2, 2, 2 /* raid1 */ },
35083508
{ 1, 2, 1, 1, 1, 2 /* dup */ },
35093509
{ 1, 1, 0, 2, 1, 1 /* raid0 */ },
3510-
{ 1, 1, 0, 1, 1, 1 /* single */ },
3510+
{ 1, 1, 1, 1, 1, 1 /* single */ },
35113511
};
35123512

35133513
static int __btrfs_alloc_chunk(struct btrfs_trans_handle *trans,

0 commit comments

Comments
 (0)