summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/libxed.py
diff options
context:
space:
mode:
authorJosef Bacik <josef@toxicpanda.com>2024-05-07 14:12:07 -0400
committerDavid Sterba <dsterba@suse.com>2024-07-11 15:33:24 +0200
commit4c4686d19dbaaaf46c5ac295e6e27580d514c4f5 (patch)
tree95f120e1b6fca0595b9afa7538b21ab32d6d8e0b /tools/perf/scripts/python/libxed.py
parent562d425454e8b8ee628fafb15e88b0ef7ec371e6 (diff)
btrfs: remove local variable need_account in do_walk_down()
We only set this if wc->refs[level - 1] > 1, and we check this way up above where we need it because the first thing we do before dropping our refs is reset wc->refs[level - 1] to 0. Reorder resetting of wc->refs to after our drop logic, and then remove the need_account variable and simply check wc->refs[level - 1] directly instead of using a variable. Signed-off-by: Josef Bacik <josef@toxicpanda.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions