Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 189464
b: refs/heads/master
c: f3eae7e
h: refs/heads/master
v: v3
  • Loading branch information
Zhao Lei authored and Chris Mason committed Mar 31, 2010
1 parent 2f38a0b commit b807e73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: ab59381ea43f81c977cbd09add26950aaf6cb9fe
refs/heads/master: f3eae7e8a5ed124bbc781e18ea10c21856017322
4 changes: 2 additions & 2 deletions trunk/fs/btrfs/volumes.c
Original file line number Diff line number Diff line change
Expand Up @@ -2198,9 +2198,9 @@ static int __btrfs_alloc_chunk(struct btrfs_trans_handle *trans,
min_stripes = 2;
}
if (type & (BTRFS_BLOCK_GROUP_RAID1)) {
num_stripes = min_t(u64, 2, fs_devices->rw_devices);
if (num_stripes < 2)
if (fs_devices->rw_devices < 2)
return -ENOSPC;
num_stripes = 2;
min_stripes = 2;
}
if (type & (BTRFS_BLOCK_GROUP_RAID10)) {
Expand Down

0 comments on commit b807e73

Please sign in to comment.