summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorStefan Behrens <sbehrens@giantdisaster.de>2012-11-06 14:57:46 +0100
committerJosef Bacik <jbacik@fusionio.com>2012-12-12 17:15:44 -0500
commit72d7aefccd512b66cd5543e652eae04be12085fc (patch)
tree833f4cffbeb643eef2ebc4c4647f9f02bf7fe920 /fs/btrfs/ctree.h
parent30d9861ff9520e2a112eae71029bc9f7e915a441 (diff)
downloadop-kernel-dev-72d7aefccd512b66cd5543e652eae04be12085fc.zip
op-kernel-dev-72d7aefccd512b66cd5543e652eae04be12085fc.tar.gz
Btrfs: increase BTRFS_MAX_MIRRORS by one for dev replace
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 <sbehrens@giantdisaster.de> Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index 46bd7d5..91ff078 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -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
OpenPOWER on IntegriCloud