summaryrefslogtreecommitdiff
path: root/ctree.h
diff options
context:
space:
mode:
authorGui Hecheng <guihc.fnst@cn.fujitsu.com>2014-06-25 18:04:17 +0800
committerDavid Sterba <dsterba@suse.cz>2014-08-22 14:43:11 +0200
commitad70b55b66b516d0d8271a8f16bee7192c556987 (patch)
tree519852a425c4f237a92960edba8b9a1179a47e6b /ctree.h
parent70e3a85e9e6384f8876a4c1af5910a682786adbb (diff)
downloadbtrfs-progs-ad70b55b66b516d0d8271a8f16bee7192c556987.tar.gz
btrfs-progs: replace BTRFS_NUM_MIRRORS with BTRFS_MAX_MIRRORS
The chunk-recover.c/BTRFS_NUM_MIRRORS in the userspace means the same thing as ctree.h/BTRFS_MAX_MIRRORS in the kernelspace, so to stay consistent with the kernelspace, just make this movement in the userspace: chunk-recover.c/BTRFS_NUM_MIRRORS ===> ctree.h/BTRFS_MAX_MIRRORS This provides convenience for future use. Signed-off-by: Gui Hecheng <guihc.fnst@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'ctree.h')
-rw-r--r--ctree.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ctree.h b/ctree.h
index 9489338..fa73c4a 100644
--- a/ctree.h
+++ b/ctree.h
@@ -40,6 +40,8 @@ struct btrfs_trans_handle;
struct btrfs_free_space_ctl;
#define BTRFS_MAGIC 0x4D5F53665248425FULL /* ascii _BHRfS_M, no null */
+#define BTRFS_MAX_MIRRORS 3
+
#define BTRFS_MAX_LEVEL 8
#define BTRFS_COMPAT_EXTENT_TREE_V0