summaryrefslogtreecommitdiff
path: root/volumes.c
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2017-07-27 11:16:59 +0300
committerDavid Sterba <dsterba@suse.com>2017-08-24 19:06:54 +0200
commit960870cc57999d6b432a214d771edf440eb81f3d (patch)
tree6e9edb58a407b8fdaa04117dadc3f9b202e11ac7 /volumes.c
parent64503149809a4ef06c1cdd38a919ba19611f323c (diff)
btrfs-progs: Use already defined BTRFS_BLOCK_GROUP_PROFILE_MASK
Instead of opencoding it. No functional changes. Signed-off-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'volumes.c')
-rw-r--r--volumes.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/volumes.c b/volumes.c
index 2f3943d..974c601 100644
--- a/volumes.c
+++ b/volumes.c
@@ -868,10 +868,7 @@ int btrfs_alloc_chunk(struct btrfs_trans_handle *trans,
return -ENOSPC;
}
- if (type & (BTRFS_BLOCK_GROUP_RAID0 | BTRFS_BLOCK_GROUP_RAID1 |
- BTRFS_BLOCK_GROUP_RAID5 | BTRFS_BLOCK_GROUP_RAID6 |
- BTRFS_BLOCK_GROUP_RAID10 |
- BTRFS_BLOCK_GROUP_DUP)) {
+ if (type & BTRFS_BLOCK_GROUP_PROFILE_MASK) {
if (type & BTRFS_BLOCK_GROUP_SYSTEM) {
calc_size = SZ_8M;
max_chunk_size = calc_size * 2;