]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: use btrfs_raid_array to calculate number of parity stripes
authorQu Wenruo <wqu@suse.com>
Fri, 13 May 2022 08:34:30 +0000 (16:34 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Jul 2022 15:45:36 +0000 (17:45 +0200)
commit3cdd412744a5127f2187a5ed8b0cb23b43f76390
treed5214a96a9d1b31e1d278699d8c29b35dd0246c2
parent72de93777293e136c72171dee99861b36f67c8a6
btrfs: use btrfs_raid_array to calculate number of parity stripes

Use the raid table instead of hard coded values and rename the helper as
it is exported.  This could make later extension on RAID56 based
profiles easier.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/raid56.c
fs/btrfs/raid56.h
fs/btrfs/volumes.c
fs/btrfs/volumes.h