diff options
| author | Filipe Manana <fdmanana@suse.com> | 2025-07-18 08:30:21 +0100 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2025-09-22 10:54:29 +0200 |
| commit | 912c257c88cd8c9a466a3cf702912a03a979fd06 (patch) | |
| tree | 2c9a1b9d4633f8006645f0f0213cbc1cf3f1960f /scripts | |
| parent | 874576d2a79a2e94cffc89b3bd0c285141b99208 (diff) | |
btrfs: abort transaction where errors happen during log tree replay
In the replay_one_buffer() log tree walk callback we return errors to the
log tree walk caller and then the caller aborts the transaction, if we
have one, or turns the fs into error state if we don't have one. While
this reduces code it makes it harder to figure out where exactly an error
came from. So add the transaction aborts after every failure inside the
replay_one_buffer() callback and the functions it calls, making it as
fine grained as possible, so that it helps figuring out why failures
happen.
Reviewed-by: Boris Burkov <boris@bur.io>
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 'scripts')
0 files changed, 0 insertions, 0 deletions
