diff options
author | 2024-05-07 14:12:07 -0400 | |
---|---|---|
committer | 2024-07-11 15:33:24 +0200 | |
commit | 4c4686d19dbaaaf46c5ac295e6e27580d514c4f5 (patch) | |
tree | 95f120e1b6fca0595b9afa7538b21ab32d6d8e0b /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | btrfs: factor out eb uptodate check from do_walk_down() (diff) | |
download | wireguard-linux-4c4686d19dbaaaf46c5ac295e6e27580d514c4f5.tar.xz wireguard-linux-4c4686d19dbaaaf46c5ac295e6e27580d514c4f5.zip |
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/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions