diff options
author | Miao Xie <miaox@cn.fujitsu.com> | 2013-01-16 11:27:17 +0000 |
---|---|---|
committer | Josef Bacik <jbacik@fusionio.com> | 2013-01-24 12:51:26 -0500 |
commit | c9f01bfe0ca411b4751d7fdbb9d602035ba52f75 (patch) | |
tree | 2f1ea0f913073f64b6b16c001b50dfe763a6162d /fs/btrfs/volumes.c | |
parent | 2cba30f172afdfa00f3e844f42f21eb3b972d01c (diff) | |
download | op-kernel-dev-c9f01bfe0ca411b4751d7fdbb9d602035ba52f75.zip op-kernel-dev-c9f01bfe0ca411b4751d7fdbb9d602035ba52f75.tar.gz |
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>
Diffstat (limited to 'fs/btrfs/volumes.c')
-rw-r--r-- | fs/btrfs/volumes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 4696098..15f6efd 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -3507,7 +3507,7 @@ struct btrfs_raid_attr btrfs_raid_array[BTRFS_NR_RAID_TYPES] = { { 1, 1, 2, 2, 2, 2 /* raid1 */ }, { 1, 2, 1, 1, 1, 2 /* dup */ }, { 1, 1, 0, 2, 1, 1 /* raid0 */ }, - { 1, 1, 0, 1, 1, 1 /* single */ }, + { 1, 1, 1, 1, 1, 1 /* single */ }, }; static int __btrfs_alloc_chunk(struct btrfs_trans_handle *trans, |