aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/uapi/linux/btrfs_tree.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2019-05-31 15:39:31 +0200
committerDavid Sterba <dsterba@suse.com>2019-07-02 12:30:48 +0200
commitc7369b3faea230cf6009449147ed755c45e74afd (patch)
tree3a2237f725a6ae2582302dbcbcad0ba0e154febe /include/uapi/linux/btrfs_tree.h
parentbtrfs: qgroup: Don't hold qgroup_ioctl_lock in btrfs_qgroup_inherit() (diff)
downloadwireguard-linux-c7369b3faea230cf6009449147ed755c45e74afd.tar.xz
wireguard-linux-c7369b3faea230cf6009449147ed755c45e74afd.zip
btrfs: add mask for all RAID1 types
Preparatory patch for additional RAID1 profiles with more copies. The mask will contain 3-copy and 4-copy, most of the checks for plain RAID1 work the same for the other profiles. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'include/uapi/linux/btrfs_tree.h')
-rw-r--r--include/uapi/linux/btrfs_tree.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/btrfs_tree.h b/include/uapi/linux/btrfs_tree.h
index 421239b98db2..34d5b34286fa 100644
--- a/include/uapi/linux/btrfs_tree.h
+++ b/include/uapi/linux/btrfs_tree.h
@@ -866,6 +866,8 @@ enum btrfs_raid_types {
#define BTRFS_BLOCK_GROUP_RAID56_MASK (BTRFS_BLOCK_GROUP_RAID5 | \
BTRFS_BLOCK_GROUP_RAID6)
+#define BTRFS_BLOCK_GROUP_RAID1_MASK (BTRFS_BLOCK_GROUP_RAID1)
+
/*
* 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