summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/transaction.c
diff options
context:
space:
mode:
authorWang Shilong <wangsl-fnst@cn.fujitsu.com>2013-04-14 10:08:49 -0400
committerJosef Bacik <jbacik@fusionio.com>2013-05-06 15:54:49 -0400
commit98ad43be0a7ec87962b194a09ae9514bf2443f35 (patch)
treea2cd06ef739ed193d328bf0c9310ff7cceccb4c2 /fs/btrfs/transaction.c
parent47fb091fb787420cd195e66f162737401cce023f (diff)
Btrfs: cleanup to remove reduplicate code in transaction.c
Signed-off-by: Wang Shilong <wangsl-fnst@cn.fujitsu.com> Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Diffstat (limited to 'fs/btrfs/transaction.c')
-rw-r--r--fs/btrfs/transaction.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c
index a5764aeb4549..de774580134f 100644
--- a/fs/btrfs/transaction.c
+++ b/fs/btrfs/transaction.c
@@ -707,23 +707,13 @@ static int __btrfs_end_transaction(struct btrfs_trans_handle *trans,
707int btrfs_end_transaction(struct btrfs_trans_handle *trans, 707int btrfs_end_transaction(struct btrfs_trans_handle *trans,
708 struct btrfs_root *root) 708 struct btrfs_root *root)
709{ 709{
710 int ret; 710 return __btrfs_end_transaction(trans, root, 0);
711
712 ret = __btrfs_end_transaction(trans, root, 0);
713 if (ret)
714 return ret;
715 return 0;
716} 711}
717 712
718int btrfs_end_transaction_throttle(struct btrfs_trans_handle *trans, 713int btrfs_end_transaction_throttle(struct btrfs_trans_handle *trans,
719 struct btrfs_root *root) 714 struct btrfs_root *root)
720{ 715{
721 int ret; 716 return __btrfs_end_transaction(trans, root, 1);
722
723 ret = __btrfs_end_transaction(trans, root, 1);
724 if (ret)
725 return ret;
726 return 0;
727} 717}
728 718
729int btrfs_end_transaction_dmeta(struct btrfs_trans_handle *trans, 719int btrfs_end_transaction_dmeta(struct btrfs_trans_handle *trans,