btrfs: always print transaction aborted messages with an error level
authorFilipe Manana <fdmanana@suse.com>
Tue, 26 Sep 2023 18:31:19 +0000 (19:31 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 3 Oct 2023 23:03:59 +0000 (01:03 +0200)
commitf8d1b011ca8c9d64ce32da431a8420635a96958a
tree05861f527a90ba9b6cc4f66edd6fa48d61f72ff5
parent5f521494cc73520ffac18ede0758883b9aedd018
btrfs: always print transaction aborted messages with an error level

Commit b7af0635c87f ("btrfs: print transaction aborted messages with an
error level") changed the log level of transaction aborted messages from
a debug level to an error level, so that such messages are always visible
even on production systems where the log level is normally above the debug
level (and also on some syzbot reports).

Later, commit fccf0c842ed4 ("btrfs: move btrfs_abort_transaction to
transaction.c") changed the log level back to debug level when the error
number for a transaction abort should not have a stack trace printed.
This happened for absolutely no reason. It's always useful to print
transaction abort messages with an error level, regardless of whether
the error number should cause a stack trace or not.

So change back the log level to error level.

Fixes: fccf0c842ed4 ("btrfs: move btrfs_abort_transaction to transaction.c")
CC: stable@vger.kernel.org # 6.5+
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/transaction.h