Skip to content

Commit 71367b3

Browse files
jeffmahoneykdave
authored andcommitted
btrfs: use btrfs_debug instead of pr_debug in transaction abort
Commit e5d6b12 (Btrfs: don't WARN() in btrfs_transaction_abort() for IO errors) added a pr_debug call to be printed when a transaction is aborted with -EIO instead of WARN. btrfs_debug prints which file system the message is associated with so let's use that instead. Signed-off-by: Jeff Mahoney <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent 21e75ff commit 71367b3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fs/btrfs/ctree.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3454,7 +3454,8 @@ do { \
34543454
"BTRFS: Transaction aborted (error %d)\n", \
34553455
(errno)); \
34563456
} else { \
3457-
pr_debug("BTRFS: Transaction aborted (error %d)\n", \
3457+
btrfs_debug((trans)->fs_info, \
3458+
"Transaction aborted (error %d)", \
34583459
(errno)); \
34593460
} \
34603461
} \

0 commit comments

Comments
 (0)