]> asedeno.scripts.mit.edu Git - linux.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)
commite4f6c6be814850249a745ea43d5c49800e7178d4
treee79f26883eed74a32bffe20eae68e0e89a3a68de
parent0e56315ca147b3e60c7bf240233a301d3c7fb508
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