diff options
author | Jeff Mahoney <jeffm@suse.com> | 2017-02-15 22:28:34 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-02-17 12:03:56 +0100 |
commit | 71367b3fa7f56256029e7ed87862ef13386e1e7e (patch) | |
tree | b3a530963dd726bdc4918b590b2289e962934a1e /fs/btrfs/ctree.h | |
parent | btrfs: btrfs_truncate_free_space_cache always allocates path (diff) | |
download | linux-71367b3fa7f56256029e7ed87862ef13386e1e7e.tar.xz linux-71367b3fa7f56256029e7ed87862ef13386e1e7e.zip |
btrfs: use btrfs_debug instead of pr_debug in transaction abort
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>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-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 7455a3e032cf..ad23a73ac7e7 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h @@ -3454,7 +3454,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)", \ (errno)); \ } \ } \ |