Btrfs: increase BTRFS_MAX_MIRRORS by one for dev replace
authorStefan Behrens <[email protected]>
Tue, 6 Nov 2012 13:57:46 +0000 (14:57 +0100)
committerJosef Bacik <[email protected]>
Wed, 12 Dec 2012 22:15:44 +0000 (17:15 -0500)
This change of the define is effective in all modes, it
is required and used only in the case when a device replace
procedure is running. The reason is that during an active
device replace procedure, the target device of the copy
operation is a mirror for the filesystem data as well that
can be used to read data in order to repair read errors on
other disks.

Signed-off-by: Stefan Behrens <[email protected]>
Signed-off-by: Chris Mason <[email protected]>
fs/btrfs/ctree.h

index 46bd7d5f504b3d0dc58a223c0cd472d6880b53fd..91ff078e85dfaec25e818884e8420a780b23204a 100644 (file)
@@ -48,7 +48,7 @@ struct btrfs_ordered_sum;
 
 #define BTRFS_MAGIC "_BHRfS_M"
 
-#define BTRFS_MAX_MIRRORS 2
+#define BTRFS_MAX_MIRRORS 3
 
 #define BTRFS_MAX_LEVEL 8