Btrfs: fix wrong max device number for single profile
authorMiao Xie <miaox@cn.fujitsu.com>
Wed, 16 Jan 2013 11:27:17 +0000 (11:27 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Thu, 24 Jan 2013 17:51:26 +0000 (12:51 -0500)
commitc9f01bfe0ca411b4751d7fdbb9d602035ba52f75
tree2f1ea0f913073f64b6b16c001b50dfe763a6162d
parent2cba30f172afdfa00f3e844f42f21eb3b972d01c
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>
fs/btrfs/volumes.c