summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/gecko.py
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2025-05-21 18:18:09 +0100
committerDavid Sterba <dsterba@suse.com>2025-07-21 23:50:34 +0200
commit81bfd9d54767d0ec85853102b9a1a02123458314 (patch)
tree8bd7d26a10a5b9571885619f2d9fed0a7ba1df1e /tools/perf/scripts/python/gecko.py
parent6466084df6b083b6f0778aa9adcb83cb8880597e (diff)
btrfs: simplify error detection flow during log replay
We have this fuzzy logic at btrfs_recover_log_trees() where we don't abort the transaction and exit immediately after each function call that returned an error, and instead have if-then-else logic or check if the previous function call returned success before calling the next function. Make the flow more straightforward by immediately aborting the transaction and exiting after each function call failure. This also allows to avoid two consecutive if statements that test the same conditions: if (!ret && wc.stage == LOG_WALK_REPLAY_ALL) { (...) } Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: Filipe Manana <fdmanana@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions