Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 360473
b: refs/heads/master
c: 1f0905e
h: refs/heads/master
i:
  360471: e8f996e
v: v3
  • Loading branch information
Chris Mason committed Feb 5, 2013
1 parent b29dd2b commit 7318180
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 10e78e3a8aec820f8f6344dfd4d465f5f84399e6
refs/heads/master: 1f0905ec156eec8f12cd593bc564551770319720
8 changes: 0 additions & 8 deletions trunk/fs/btrfs/volumes.c
Original file line number Diff line number Diff line change
Expand Up @@ -1392,14 +1392,6 @@ int btrfs_rm_device(struct btrfs_root *root, char *device_path)
}
btrfs_dev_replace_unlock(&root->fs_info->dev_replace);

if ((all_avail & (BTRFS_BLOCK_GROUP_RAID5 |
BTRFS_BLOCK_GROUP_RAID6) && num_devices <= 3)) {
printk(KERN_ERR "btrfs: unable to go below three devices "
"on raid5 or raid6\n");
ret = -EINVAL;
goto out;
}

if ((all_avail & BTRFS_BLOCK_GROUP_RAID10) && num_devices <= 4) {
printk(KERN_ERR "btrfs: unable to go below four devices "
"on raid10\n");
Expand Down

0 comments on commit 7318180

Please sign in to comment.