]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: use btrfs_chunk_max_errors() to replace tolerance calculation
authorQu Wenruo <wqu@suse.com>
Fri, 13 May 2022 08:34:29 +0000 (16:34 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Jul 2022 15:45:36 +0000 (17:45 +0200)
commit72de93777293e136c72171dee99861b36f67c8a6
treef7897d3b99b723788e57cd6391de95c557620d53
parentceae3f334fb73c2ae286783c32e9607e5cc54700
btrfs: use btrfs_chunk_max_errors() to replace tolerance calculation

In __btrfs_map_block() we have an assignment to @max_errors using
nr_parity_stripes().

Although it works for RAID56 it's confusing.  Replace it with
btrfs_chunk_max_errors().

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/volumes.c