diff options
| author | Mikulas Patocka <mpatocka@redhat.com> | 2012-07-27 15:08:02 +0100 |
|---|---|---|
| committer | Alasdair G Kergon <agk@redhat.com> | 2012-07-27 15:08:02 +0100 |
| commit | 33d07c0dfab902a7c5420587984497dc05ab5c9c (patch) | |
| tree | a81d17ca4633bc43a5fc0959754df43c109a0b63 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/SchedGui.py | |
| parent | 8f069b41bce79b0c4b6076acd0f3d15df0a232ed (diff) | |
dm stripe: optimize chunk_size calculations
dm-stripe is usually used with a chunk size that is a power of two.
Use faster shifts and bit masks in such cases.
stripe_width is already optimized in a similar way.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/SchedGui.py')
0 files changed, 0 insertions, 0 deletions
