diff options
author | 2022-06-02 15:51:18 +0800 | |
---|---|---|
committer | 2022-07-25 17:45:34 +0200 | |
commit | 369200446564f04b5cd14596d69e17880be7d926 (patch) | |
tree | f7d20d889d34b4de3d2533731c0dde8e1e40cca3 /tools/perf/scripts/python/syscall-counts.py | |
parent | btrfs: tree-log: make the return value for log syncing consistent (diff) | |
download | linux-dev-369200446564f04b5cd14596d69e17880be7d926.tar.xz linux-dev-369200446564f04b5cd14596d69e17880be7d926.zip |
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>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions