diff options
author | Jeff Mahoney <jeffm@suse.com> | 2016-12-19 18:02:03 -0500 |
---|---|---|
committer | Jeff Mahoney <jeffm@suse.com> | 2017-02-15 10:44:32 -0500 |
commit | bfe8e73697a804a6926b29006304d7bad3a43c16 (patch) | |
tree | 5206cf763feb4e7ac5c2411d406487b9273318e3 | |
parent | af778e7f7ebe021e6b2ae049be234f8f676fe17b (diff) | |
download | linux-btrfs-for-4.11.tar.gz |
btrfs: use btrfs_debug instead of pr_debug in transaction abortfor-4.11
Commit e5d6b12fe14 (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 <jeffm@suse.com>
-rw-r--r-- | fs/btrfs/ctree.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 49f520c3d4dd8b..0b9243226e2759 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h @@ -3447,7 +3447,8 @@ do { \ "BTRFS: Transaction aborted (error %d)\n", \ (errno)); \ } else { \ - pr_debug("BTRFS: Transaction aborted (error %d)\n", \ + btrfs_debug((trans)->fs_info, \ + "Transaction aborted (error %d)\n", \ (errno)); \ } \ } \ |