btrfs: unfold transaction aborts when replaying log trees
authorFilipe Manana <fdmanana@suse.com>
Wed, 21 May 2025 16:30:56 +0000 (17:30 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Jul 2025 21:44:11 +0000 (23:44 +0200)
commit8f1e1b263dbcd0f250116b9453001eb48fc31c74
tree93a77ca149667e8c824772615d70348cd33bfeb8
parent2a946bf6d675178934100582317d58ce74f9e5af
btrfs: unfold transaction aborts when replaying log trees

We have a single line doing a transaction abort in case either we got an
error from btrfs_get_fs_root() different from -ENOENT or we got an error
from btrfs_pin_extent_for_log_replay(), making it hard to figure out which
function call failed when looking at a transaction abort massages and
stack trace in dmesg. Change this to have an explicit transaction abort
for each one of the two cases.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/tree-log.c