diff options
author | Kemeng Shi <[email protected]> | 2023-01-17 04:50:55 +0800 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2023-01-29 20:03:01 -0700 |
commit | f1591a8bb3e02713f4ee2efe20df0d84ed80da48 (patch) | |
tree | 60af1db825630c48e97d818acb45d71fdc09eeef /tools/perf/scripts/python/stackcollapse.py | |
parent | f1c006f1c6850c14040f8337753a63119bba39b9 (diff) |
sbitmap: remove unnecessary calculation of alloc_hint in __sbitmap_get_shallow
Updates to alloc_hint in the loop in __sbitmap_get_shallow() are mostly
pointless and equivalent to setting alloc_hint to zero (because
SB_NR_TO_BIT() considers only low sb->shift bits from alloc_hint). So
simplify the logic.
Reviewed-by: Jan Kara <[email protected]>
Signed-off-by: Kemeng Shi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions