diff options
author | Henrik Nordvik <henrikno@gmail.com> | 2013-04-29 20:09:23 +0200 |
---|---|---|
committer | Josef Bacik <jbacik@fusionio.com> | 2013-06-14 17:29:14 +0200 |
commit | 15b0a89d71ae2573ed1c3b168f08320527eed34e (patch) | |
tree | 92f64ace2b3ca28d0089ce2e8dfb72227c1fe2de /fs/btrfs/disk-io.c | |
parent | Btrfs: stop all workers before cleaning up roots (diff) | |
download | linux-15b0a89d71ae2573ed1c3b168f08320527eed34e.tar.xz linux-15b0a89d71ae2573ed1c3b168f08320527eed34e.zip |
Btrfs: fix check on same raid type flag twice
Code checked for raid 5 flag in two else-if branches, so code would never be reached. Probably a copy-paste bug.
Signed-off-by: Henrik Nordvik <henrikno@gmail.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index b8b60b660c8f..aecf788ed81e 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -3258,7 +3258,7 @@ int btrfs_calc_num_tolerated_disk_barrier_failures( BTRFS_BLOCK_GROUP_RAID10)) { num_tolerated_disk_barrier_failures = 1; } else if (flags & - BTRFS_BLOCK_GROUP_RAID5) { + BTRFS_BLOCK_GROUP_RAID6) { num_tolerated_disk_barrier_failures = 2; } } |