diff options
author | David Sterba <dsterba@suse.com> | 2021-07-26 14:15:24 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2021-08-23 13:19:03 +0200 |
commit | d58ede8d1d9fb0f70d6aa51fa6550d2d580f8c17 (patch) | |
tree | 574b87ff59d57aa5cdd6c41af428d76faca992ce /tools/perf/scripts/python/syscall-counts.py | |
parent | fe4f46d40c1c2ff78a8a7280e455f115c32e6b41 (diff) |
btrfs: simplify data stripe calculation helpers
There are two helpers doing the same calculations based on nparity and
ncopies. calc_data_stripes can be simplified into one expression, so far
we don't have profile with both copies and parity, so there's no
effective change. calc_stripe_length should reuse the helper and not
repeat the same calculation.
Reviewed-by: Qu Wenruo <wqu@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