summaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorJosef Bacik <josef@toxicpanda.com>2024-05-07 21:12:07 +0300
committerDavid Sterba <dsterba@suse.com>2024-07-11 16:33:24 +0300
commit4c4686d19dbaaaf46c5ac295e6e27580d514c4f5 (patch)
tree95f120e1b6fca0595b9afa7538b21ab32d6d8e0b /include/linux/debugobjects.h
parent562d425454e8b8ee628fafb15e88b0ef7ec371e6 (diff)
downloadlinux-4c4686d19dbaaaf46c5ac295e6e27580d514c4f5.tar.xz
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 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions