OSDN Git Service

btrfs: add mask for all RAID1 types
authorDavid Sterba <dsterba@suse.com>
Fri, 31 May 2019 13:39:31 +0000 (15:39 +0200)
committerDavid Sterba <dsterba@suse.com>
Tue, 2 Jul 2019 10:30:48 +0000 (12:30 +0200)
commitc7369b3faea230cf6009449147ed755c45e74afd
tree3a2237f725a6ae2582302dbcbcad0ba0e154febe
parente88439debd0a7f969b3ddba6f147152cd0732676
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>
fs/btrfs/extent-tree.c
fs/btrfs/scrub.c
fs/btrfs/volumes.c
include/uapi/linux/btrfs_tree.h