Commit 98ad43be authored by Wang Shilong's avatar Wang Shilong Committed by Josef Bacik

Btrfs: cleanup to remove reduplicate code in transaction.c

Signed-off-by: default avatarWang Shilong <wangsl-fnst@cn.fujitsu.com>
Signed-off-by: default avatarJosef Bacik <jbacik@fusionio.com>
parent 47fb091f
...@@ -707,23 +707,13 @@ static int __btrfs_end_transaction(struct btrfs_trans_handle *trans, ...@@ -707,23 +707,13 @@ static int __btrfs_end_transaction(struct btrfs_trans_handle *trans,
int btrfs_end_transaction(struct btrfs_trans_handle *trans, int btrfs_end_transaction(struct btrfs_trans_handle *trans,
struct btrfs_root *root) struct btrfs_root *root)
{ {
int ret; return __btrfs_end_transaction(trans, root, 0);
ret = __btrfs_end_transaction(trans, root, 0);
if (ret)
return ret;
return 0;
} }
int btrfs_end_transaction_throttle(struct btrfs_trans_handle *trans, int btrfs_end_transaction_throttle(struct btrfs_trans_handle *trans,
struct btrfs_root *root) struct btrfs_root *root)
{ {
int ret; return __btrfs_end_transaction(trans, root, 1);
ret = __btrfs_end_transaction(trans, root, 1);
if (ret)
return ret;
return 0;
} }
int btrfs_end_transaction_dmeta(struct btrfs_trans_handle *trans, int btrfs_end_transaction_dmeta(struct btrfs_trans_handle *trans,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment