aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorKent Overstreet <[email protected]>2022-06-19 22:43:00 -0400
committerKent Overstreet <[email protected]>2023-10-22 17:09:34 -0400
commite34da43e33f8c0b42b74bf9aa86042d16884183b (patch)
tree4c70991459db76a6769fe8f308fed05ff7794daf /tools/perf/scripts/python
parent22add2ec6705cd66977717c49105e0910b2ef144 (diff)
bcachefs: Improve bch2_check_alloc_info
- In check_alloc_key(), previously we were re-initializing iterators for the need_discard and freespace btrees for every alloc key we checked. But this was causing us to redo lookups into the journal keys every time, since those lookups are cached in struct btree_iter. This initializes the iterators in bch2_check_alloc_info and passes them into check_alloc_key(). - Make the looping more consistent/efficient in bch2_check_alloc_info() Signed-off-by: Kent Overstreet <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions