aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/tree-log.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/tree-log.c')
-rw-r--r--fs/btrfs/tree-log.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c
index 6c8297bcfeb7..1bfd7e34f31e 100644
--- a/fs/btrfs/tree-log.c
+++ b/fs/btrfs/tree-log.c
@@ -4985,7 +4985,7 @@ static int log_conflicting_inodes(struct btrfs_trans_handle *trans,
4985 BTRFS_I(inode), 4985 BTRFS_I(inode),
4986 LOG_OTHER_INODE_ALL, 4986 LOG_OTHER_INODE_ALL,
4987 0, LLONG_MAX, ctx); 4987 0, LLONG_MAX, ctx);
4988 iput(inode); 4988 btrfs_add_delayed_iput(inode);
4989 } 4989 }
4990 } 4990 }
4991 continue; 4991 continue;
@@ -5000,7 +5000,7 @@ static int log_conflicting_inodes(struct btrfs_trans_handle *trans,
5000 ret = btrfs_log_inode(trans, root, BTRFS_I(inode), 5000 ret = btrfs_log_inode(trans, root, BTRFS_I(inode),
5001 LOG_OTHER_INODE, 0, LLONG_MAX, ctx); 5001 LOG_OTHER_INODE, 0, LLONG_MAX, ctx);
5002 if (ret) { 5002 if (ret) {
5003 iput(inode); 5003 btrfs_add_delayed_iput(inode);
5004 continue; 5004 continue;
5005 } 5005 }
5006 5006
@@ -5009,7 +5009,7 @@ static int log_conflicting_inodes(struct btrfs_trans_handle *trans,
5009 key.offset = 0; 5009 key.offset = 0;
5010 ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); 5010 ret = btrfs_search_slot(NULL, root, &key, path, 0, 0);
5011 if (ret < 0) { 5011 if (ret < 0) {
5012 iput(inode); 5012 btrfs_add_delayed_iput(inode);
5013 continue; 5013 continue;
5014 } 5014 }
5015 5015
@@ -5056,7 +5056,7 @@ static int log_conflicting_inodes(struct btrfs_trans_handle *trans,
5056 } 5056 }
5057 path->slots[0]++; 5057 path->slots[0]++;
5058 } 5058 }
5059 iput(inode); 5059 btrfs_add_delayed_iput(inode);
5060 } 5060 }
5061 5061
5062 return ret; 5062 return ret;
@@ -5689,7 +5689,7 @@ process_leaf:
5689 } 5689 }
5690 5690
5691 if (btrfs_inode_in_log(BTRFS_I(di_inode), trans->transid)) { 5691 if (btrfs_inode_in_log(BTRFS_I(di_inode), trans->transid)) {
5692 iput(di_inode); 5692 btrfs_add_delayed_iput(di_inode);
5693 break; 5693 break;
5694 } 5694 }
5695 5695
@@ -5701,7 +5701,7 @@ process_leaf:
5701 if (!ret && 5701 if (!ret &&
5702 btrfs_must_commit_transaction(trans, BTRFS_I(di_inode))) 5702 btrfs_must_commit_transaction(trans, BTRFS_I(di_inode)))
5703 ret = 1; 5703 ret = 1;
5704 iput(di_inode); 5704 btrfs_add_delayed_iput(di_inode);
5705 if (ret) 5705 if (ret)
5706 goto next_dir_inode; 5706 goto next_dir_inode;
5707 if (ctx->log_new_dentries) { 5707 if (ctx->log_new_dentries) {
@@ -5848,7 +5848,7 @@ static int btrfs_log_all_parents(struct btrfs_trans_handle *trans,
5848 if (!ret && ctx && ctx->log_new_dentries) 5848 if (!ret && ctx && ctx->log_new_dentries)
5849 ret = log_new_dir_dentries(trans, root, 5849 ret = log_new_dir_dentries(trans, root,
5850 BTRFS_I(dir_inode), ctx); 5850 BTRFS_I(dir_inode), ctx);
5851 iput(dir_inode); 5851 btrfs_add_delayed_iput(dir_inode);
5852 if (ret) 5852 if (ret)
5853 goto out; 5853 goto out;
5854 } 5854 }
@@ -5891,7 +5891,7 @@ static int log_new_ancestors(struct btrfs_trans_handle *trans,
5891 ret = btrfs_log_inode(trans, root, BTRFS_I(inode), 5891 ret = btrfs_log_inode(trans, root, BTRFS_I(inode),
5892 LOG_INODE_EXISTS, 5892 LOG_INODE_EXISTS,
5893 0, LLONG_MAX, ctx); 5893 0, LLONG_MAX, ctx);
5894 iput(inode); 5894 btrfs_add_delayed_iput(inode);
5895 if (ret) 5895 if (ret)
5896 return ret; 5896 return ret;
5897 5897