diff options
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 4f977ea5497e..7c87f863d6f7 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c | |||
@@ -2482,7 +2482,7 @@ static int btrfs_create(struct inode *dir, struct dentry *dentry, | |||
2482 | btrfs_update_inode_block_group(trans, dir); | 2482 | btrfs_update_inode_block_group(trans, dir); |
2483 | out_unlock: | 2483 | out_unlock: |
2484 | nr = trans->blocks_used; | 2484 | nr = trans->blocks_used; |
2485 | btrfs_end_transaction(trans, root); | 2485 | btrfs_end_transaction_throttle(trans, root); |
2486 | fail: | 2486 | fail: |
2487 | if (drop_inode) { | 2487 | if (drop_inode) { |
2488 | inode_dec_link_count(inode); | 2488 | inode_dec_link_count(inode); |
@@ -2535,7 +2535,7 @@ static int btrfs_link(struct dentry *old_dentry, struct inode *dir, | |||
2535 | drop_inode = 1; | 2535 | drop_inode = 1; |
2536 | 2536 | ||
2537 | nr = trans->blocks_used; | 2537 | nr = trans->blocks_used; |
2538 | btrfs_end_transaction(trans, root); | 2538 | btrfs_end_transaction_throttle(trans, root); |
2539 | fail: | 2539 | fail: |
2540 | if (drop_inode) { | 2540 | if (drop_inode) { |
2541 | inode_dec_link_count(inode); | 2541 | inode_dec_link_count(inode); |
@@ -2609,7 +2609,7 @@ static int btrfs_mkdir(struct inode *dir, struct dentry *dentry, int mode) | |||
2609 | 2609 | ||
2610 | out_fail: | 2610 | out_fail: |
2611 | nr = trans->blocks_used; | 2611 | nr = trans->blocks_used; |
2612 | btrfs_end_transaction(trans, root); | 2612 | btrfs_end_transaction_throttle(trans, root); |
2613 | 2613 | ||
2614 | out_unlock: | 2614 | out_unlock: |
2615 | if (drop_on_err) | 2615 | if (drop_on_err) |
@@ -3434,7 +3434,7 @@ static int btrfs_rename(struct inode * old_dir, struct dentry *old_dentry, | |||
3434 | goto out_fail; | 3434 | goto out_fail; |
3435 | 3435 | ||
3436 | out_fail: | 3436 | out_fail: |
3437 | btrfs_end_transaction(trans, root); | 3437 | btrfs_end_transaction_throttle(trans, root); |
3438 | out_unlock: | 3438 | out_unlock: |
3439 | return ret; | 3439 | return ret; |
3440 | } | 3440 | } |
@@ -3548,7 +3548,7 @@ static int btrfs_symlink(struct inode *dir, struct dentry *dentry, | |||
3548 | 3548 | ||
3549 | out_unlock: | 3549 | out_unlock: |
3550 | nr = trans->blocks_used; | 3550 | nr = trans->blocks_used; |
3551 | btrfs_end_transaction(trans, root); | 3551 | btrfs_end_transaction_throttle(trans, root); |
3552 | out_fail: | 3552 | out_fail: |
3553 | if (drop_inode) { | 3553 | if (drop_inode) { |
3554 | inode_dec_link_count(inode); | 3554 | inode_dec_link_count(inode); |