Skip to content

Commit

Permalink
btrfs-progs: Add BTRFS_EXTENDED_PROFILE_MASK mask
Browse files Browse the repository at this point in the history
Add BTRFS_EXTENDED_PROFILE_MASK to consider also the
BTRFS_AVAIL_ALLOC_BIT_SINGLE bit.

Signed-off-by: Goffredo Baroncelli <kreijack@inwind.it>
Signed-off-by: David Sterba <dsterba@suse.com>
  • Loading branch information
kreijack authored and kdave committed Apr 1, 2020
1 parent 9fd37f9 commit 8fe2497
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ctree.h
Expand Up @@ -1005,6 +1005,9 @@ enum btrfs_raid_types {
/* used in struct btrfs_balance_args fields */
#define BTRFS_AVAIL_ALLOC_BIT_SINGLE (1ULL << 48)

#define BTRFS_EXTENDED_PROFILE_MASK (BTRFS_BLOCK_GROUP_PROFILE_MASK | \
BTRFS_AVAIL_ALLOC_BIT_SINGLE)

/*
* GLOBAL_RSV does not exist as a on-disk block group type and is used
* internally for exporting info about global block reserve from space infos
Expand Down

0 comments on commit 8fe2497

Please sign in to comment.