diff options
author | Zhao Lei <zhaolei@cn.fujitsu.com> | 2015-01-20 07:11:44 (GMT) |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2015-01-22 02:06:49 (GMT) |
commit | ffe2d2034bbb34f49f76c808550fdfbea2ea1659 (patch) | |
tree | e77f446b2628d80cff892f604da7ffa292e892ee /fs/btrfs/ctree.h | |
parent | 10f11900167a83e0c229c4c27e73e720ebd55b5c (diff) | |
download | linux-ffe2d2034bbb34f49f76c808550fdfbea2ea1659.tar.xz |
Btrfs: Introduce BTRFS_BLOCK_GROUP_RAID56_MASK to check raid56 simply
So we can check raid56 with:
(map->type & BTRFS_BLOCK_GROUP_RAID56_MASK)
instead of long:
(map->type & (BTRFS_BLOCK_GROUP_RAID5 | BTRFS_BLOCK_GROUP_RAID6))
Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 0b4683f..2ecdac0 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h @@ -1020,6 +1020,9 @@ enum btrfs_raid_types { BTRFS_BLOCK_GROUP_RAID6 | \ BTRFS_BLOCK_GROUP_DUP | \ BTRFS_BLOCK_GROUP_RAID10) +#define BTRFS_BLOCK_GROUP_RAID56_MASK (BTRFS_BLOCK_GROUP_RAID5 | \ + BTRFS_BLOCK_GROUP_RAID6) + /* * We need a bit for restriper to be able to tell when chunks of type * SINGLE are available. This "extended" profile format is used in |