aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorQu Wenruo <[email protected]>2022-06-02 15:51:18 +0800
committerDavid Sterba <[email protected]>2022-07-25 17:45:34 +0200
commit369200446564f04b5cd14596d69e17880be7d926 (patch)
treef7d20d889d34b4de3d2533731c0dde8e1e40cca3 /tools/perf/scripts/python
parentf31f09f6be1c6c1a673e0566e258281a7bbaaa51 (diff)
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 <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions