[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1367258963-27134-1-git-send-email-henrikno@gmail.com>
Date: Mon, 29 Apr 2013 20:09:23 +0200
From: henrikno@...il.com
To: chris.mason@...ionio.com
Cc: linux-btrfs@...r.kernel.org, linux-kernel@...r.kernel.org,
Henrik Nordvik <henrikno@...il.com>
Subject: [PATCH] Btrfs: fix check on same raid type flag twice
From: Henrik Nordvik <henrikno@...il.com>
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@...il.com>
---
fs/btrfs/disk-io.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index 6d19a0a..19a327d 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -3141,7 +3141,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;
}
}
--
1.8.1.2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists