btrfs: introduce nparity raid_attr
authorHans van Kranenburg <hans.van.kranenburg@mendix.com>
Thu, 4 Oct 2018 21:24:42 +0000 (23:24 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 17 Dec 2018 13:51:34 +0000 (14:51 +0100)
commitb50836edf9fe531c66310071df59eac2d8dfc708
tree0556f2f5d3b7ebc9e43831297cf4a1472b0158af
parentda612e31aee51bd13231c78a47c714b543bd3ad8
btrfs: introduce nparity raid_attr

Instead of hardcoding exceptions for RAID5 and RAID6 in the code, use an
nparity field in raid_attr.

Signed-off-by: Hans van Kranenburg <hans.van.kranenburg@mendix.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c
fs/btrfs/volumes.h