]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: use raid_attr table in calc_stripe_length for nparity
authorDavid Sterba <dsterba@suse.com>
Mon, 13 May 2019 23:59:54 +0000 (01:59 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 20 Jan 2020 15:40:49 +0000 (16:40 +0100)
commita792078a072a20e7e65729b0c5208d8ae423f887
treee79f26883eed74a32bffe20eae68e0e89a3a68de
parent3f9b0a7b5f74f5f487720b66c89bbc46964d29c4
btrfs: use raid_attr table in calc_stripe_length for nparity

The table is already used for ncopies, replace open coding of stripes
with the raid_attr value.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c