diff options
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r-- | fs/btrfs/extent-tree.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 688aa861a928..7c21f63f1b93 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c | |||
@@ -224,6 +224,7 @@ static int __free_extent(struct btrfs_trans_handle *trans, struct btrfs_root | |||
224 | path = btrfs_alloc_path(); | 224 | path = btrfs_alloc_path(); |
225 | BUG_ON(!path); | 225 | BUG_ON(!path); |
226 | btrfs_init_path(path); | 226 | btrfs_init_path(path); |
227 | |||
227 | ret = btrfs_search_slot(trans, extent_root, &key, path, -1, 1); | 228 | ret = btrfs_search_slot(trans, extent_root, &key, path, -1, 1); |
228 | if (ret) { | 229 | if (ret) { |
229 | printk("failed to find %Lu\n", key.objectid); | 230 | printk("failed to find %Lu\n", key.objectid); |
@@ -363,8 +364,6 @@ static int find_free_extent(struct btrfs_trans_handle *trans, struct btrfs_root | |||
363 | if (root->fs_info->last_insert.objectid > search_start) | 364 | if (root->fs_info->last_insert.objectid > search_start) |
364 | search_start = root->fs_info->last_insert.objectid; | 365 | search_start = root->fs_info->last_insert.objectid; |
365 | 366 | ||
366 | path = btrfs_alloc_path(); | ||
367 | |||
368 | check_failed: | 367 | check_failed: |
369 | btrfs_init_path(path); | 368 | btrfs_init_path(path); |
370 | ins->objectid = search_start; | 369 | ins->objectid = search_start; |