diff options
author | Josef Bacik <[email protected]> | 2024-05-07 14:12:07 -0400 |
---|---|---|
committer | David Sterba <[email protected]> | 2024-07-11 15:33:24 +0200 |
commit | 4c4686d19dbaaaf46c5ac295e6e27580d514c4f5 (patch) | |
tree | 95f120e1b6fca0595b9afa7538b21ab32d6d8e0b /tools/perf/scripts/python/mem-phys-addr.py | |
parent | 562d425454e8b8ee628fafb15e88b0ef7ec371e6 (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 <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions