Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 15b0a89d authored by Henrik Nordvik's avatar Henrik Nordvik Committed by Josef Bacik
Browse files

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: default avatarHenrik Nordvik <henrikno@gmail.com>
Signed-off-by: default avatarJosef Bacik <jbacik@fusionio.com>
parent 13e6c37b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
					}
				}