]> Git Repo - linux.git/commit - fs/btrfs/ctree.h
Btrfs: Introduce BTRFS_BLOCK_GROUP_RAID56_MASK to check raid56 simply
authorZhao Lei <[email protected]>
Tue, 20 Jan 2015 07:11:44 +0000 (15:11 +0800)
committerChris Mason <[email protected]>
Thu, 22 Jan 2015 02:06:49 +0000 (18:06 -0800)
commitffe2d2034bbb34f49f76c808550fdfbea2ea1659
treee77f446b2628d80cff892f604da7ffa292e892ee
parent10f11900167a83e0c229c4c27e73e720ebd55b5c
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 <[email protected]>
Signed-off-by: Miao Xie <[email protected]>
Signed-off-by: Chris Mason <[email protected]>
fs/btrfs/ctree.h
fs/btrfs/inode.c
fs/btrfs/scrub.c
fs/btrfs/volumes.c
This page took 0.057007 seconds and 4 git commands to generate.