aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent-tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r--fs/btrfs/extent-tree.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index b2ae8e768b6c..c4194dab7a33 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -39,7 +39,7 @@ static int inc_block_ref(struct btrfs_trans_handle *trans, struct btrfs_root
39 item = btrfs_item_ptr(l, path.slots[0], struct btrfs_extent_item); 39 item = btrfs_item_ptr(l, path.slots[0], struct btrfs_extent_item);
40 refs = btrfs_extent_refs(item); 40 refs = btrfs_extent_refs(item);
41 btrfs_set_extent_refs(item, refs + 1); 41 btrfs_set_extent_refs(item, refs + 1);
42 mark_buffer_dirty(path.nodes[0]); 42 btrfs_mark_buffer_dirty(path.nodes[0]);
43 43
44 btrfs_release_path(root->fs_info->extent_root, &path); 44 btrfs_release_path(root->fs_info->extent_root, &path);
45 finish_current_insert(trans, root->fs_info->extent_root); 45 finish_current_insert(trans, root->fs_info->extent_root);
@@ -177,10 +177,10 @@ static int pin_down_block(struct btrfs_root *root, u64 blocknr, int pending)
177 header = btrfs_buffer_header(bh); 177 header = btrfs_buffer_header(bh);
178 if (btrfs_header_generation(header) == 178 if (btrfs_header_generation(header) ==
179 root->fs_info->running_transaction->transid) { 179 root->fs_info->running_transaction->transid) {
180 brelse(bh); 180 btrfs_block_release(root, bh);
181 return 0; 181 return 0;
182 } 182 }
183 brelse(bh); 183 btrfs_block_release(root, bh);
184 } 184 }
185 err = set_radix_bit(&root->fs_info->pinned_radix, blocknr); 185 err = set_radix_bit(&root->fs_info->pinned_radix, blocknr);
186 } else { 186 } else {
@@ -224,7 +224,7 @@ static int __free_extent(struct btrfs_trans_handle *trans, struct btrfs_root
224 BUG_ON(ei->refs == 0); 224 BUG_ON(ei->refs == 0);
225 refs = btrfs_extent_refs(ei) - 1; 225 refs = btrfs_extent_refs(ei) - 1;
226 btrfs_set_extent_refs(ei, refs); 226 btrfs_set_extent_refs(ei, refs);
227 mark_buffer_dirty(path.nodes[0]); 227 btrfs_mark_buffer_dirty(path.nodes[0]);
228 if (refs == 0) { 228 if (refs == 0) {
229 u64 super_blocks_used; 229 u64 super_blocks_used;
230 230