aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorJosef Bacik <[email protected]>2023-02-07 11:57:24 -0500
committerDavid Sterba <[email protected]>2023-04-17 18:01:13 +0200
commit4e19438400ce6d4a6251829ac045ba680ad48bb4 (patch)
treecad4aa2333afa6a630eef326b826958e2c97b07a /tools/perf/scripts/python/bin
parent6989627db074a3db0ca297657bcb8709d8c888c0 (diff)
btrfs: handle errors in walk_down_tree properly
We can get errors in walk_down_proc as we try and lookup extent info for the snapshot dropping to act on. However if we get an error we simply return 1 which indicates we're done with walking down, which will lead us to improperly continue with the snapshot drop with the incorrect information. Instead break if we get any error from walk_down_proc or do_walk_down, and handle the case of ret == 1 by returning 0, otherwise return the ret value that we have. 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/bin')
0 files changed, 0 insertions, 0 deletions