Qu Wenruo 3692004465 btrfs: raid56: avoid double for loop inside finish_rmw()
We can easily calculate the stripe number and sector number inside the
stripe.  Thus there is not much need for a double for loop.

For the only case we want to skip the whole stripe, we can manually
increase @total_sector_nr.
This is not a recommended behavior, thus every time the iterator gets
modified there will be a comment along with an ASSERT() for it.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2022-07-25 17:45:34 +02:00
..
2022-07-25 17:45:33 +02:00
2021-06-22 14:11:57 +02:00
2022-07-25 17:45:33 +02:00
2022-05-24 19:55:07 -07:00
2022-05-24 19:55:07 -07:00
2022-07-25 17:44:33 +02:00
2022-07-25 17:45:33 +02:00