summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorMiao Xie <miaox@cn.fujitsu.com>2013-01-17 00:38:51 -0500
committerJosef Bacik <jbacik@fusionio.com>2013-02-20 09:37:19 -0500
commite6ec716f0ddbe51741ef261d0804f0c28038dda4 (patch)
tree3339ba3503a5bac32c5cf7835a153f73d5eecd06 /fs/btrfs/ctree.h
parenta1897fddd28daf6b23d05a30dc2a18836f77f8e3 (diff)
Btrfs: make raid attr array more readable
The current code of raid attr arry is hard to understand and it is easy to introduce some problem if we modify the array. So I changed it and made it more readable. Cc: Liu Bo <bo.li.liu@oracle.com> Signed-off-by: Miao Xie <miaox@cn.fujitsu.com> Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index 9ee099f3f834..541ce9a9949e 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -953,7 +953,15 @@ struct btrfs_dev_replace_item {
953#define BTRFS_BLOCK_GROUP_DUP (1ULL << 5) 953#define BTRFS_BLOCK_GROUP_DUP (1ULL << 5)
954#define BTRFS_BLOCK_GROUP_RAID10 (1ULL << 6) 954#define BTRFS_BLOCK_GROUP_RAID10 (1ULL << 6)
955#define BTRFS_BLOCK_GROUP_RESERVED BTRFS_AVAIL_ALLOC_BIT_SINGLE 955#define BTRFS_BLOCK_GROUP_RESERVED BTRFS_AVAIL_ALLOC_BIT_SINGLE
956#define BTRFS_NR_RAID_TYPES 5 956
957enum btrfs_raid_types {
958 BTRFS_RAID_RAID10,
959 BTRFS_RAID_RAID1,
960 BTRFS_RAID_DUP,
961 BTRFS_RAID_RAID0,
962 BTRFS_RAID_SINGLE,
963 BTRFS_NR_RAID_TYPES
964};
957 965
958#define BTRFS_BLOCK_GROUP_TYPE_MASK (BTRFS_BLOCK_GROUP_DATA | \ 966#define BTRFS_BLOCK_GROUP_TYPE_MASK (BTRFS_BLOCK_GROUP_DATA | \
959 BTRFS_BLOCK_GROUP_SYSTEM | \ 967 BTRFS_BLOCK_GROUP_SYSTEM | \