diff options
author | Anand Jain <anand.jain@oracle.com> | 2015-09-25 02:43:01 -0400 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2015-09-29 10:30:00 -0400 |
commit | a4553fefb59cb0336f543fa567170b47e90142a9 (patch) | |
tree | 103dcab4eeecae6d9ee4e796bcdb4209aa340ca4 /fs/btrfs/transaction.c | |
parent | 57d816a15ba2c2690c57635134bc01cf4da4623c (diff) |
Btrfs: consolidate btrfs_error() to btrfs_std_error()
btrfs_error() and btrfs_std_error() does the same thing
and calls _btrfs_std_error(), so consolidate them together.
And the main motivation is that btrfs_error() is closely
named with btrfs_err(), one handles error action the other
is to log the error, so don't closely name them.
Signed-off-by: Anand Jain <anand.jain@oracle.com>
Suggested-by: David Sterba <dsterba@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/transaction.c')
-rw-r--r-- | fs/btrfs/transaction.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c index 74bc3338418b..3482d9eeb62d 100644 --- a/fs/btrfs/transaction.c +++ b/fs/btrfs/transaction.c | |||
@@ -2135,7 +2135,7 @@ int btrfs_commit_transaction(struct btrfs_trans_handle *trans, | |||
2135 | 2135 | ||
2136 | ret = btrfs_write_and_wait_transaction(trans, root); | 2136 | ret = btrfs_write_and_wait_transaction(trans, root); |
2137 | if (ret) { | 2137 | if (ret) { |
2138 | btrfs_error(root->fs_info, ret, | 2138 | btrfs_std_error(root->fs_info, ret, |
2139 | "Error while writing out transaction"); | 2139 | "Error while writing out transaction"); |
2140 | mutex_unlock(&root->fs_info->tree_log_mutex); | 2140 | mutex_unlock(&root->fs_info->tree_log_mutex); |
2141 | goto scrub_continue; | 2141 | goto scrub_continue; |