diff options
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r-- | fs/btrfs/extent-tree.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 4049aadbeda..c31e84d4265 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c | |||
@@ -39,7 +39,6 @@ static int cache_block_group(struct btrfs_root *root, | |||
39 | u64 i; | 39 | u64 i; |
40 | u64 last = 0; | 40 | u64 last = 0; |
41 | u64 hole_size; | 41 | u64 hole_size; |
42 | u64 limit; | ||
43 | int found = 0; | 42 | int found = 0; |
44 | 43 | ||
45 | root = root->fs_info->extent_root; | 44 | root = root->fs_info->extent_root; |
@@ -62,7 +61,6 @@ static int cache_block_group(struct btrfs_root *root, | |||
62 | return ret; | 61 | return ret; |
63 | if (ret && path->slots[0] > 0) | 62 | if (ret && path->slots[0] > 0) |
64 | path->slots[0]--; | 63 | path->slots[0]--; |
65 | limit = block_group->key.objectid + block_group->key.offset; | ||
66 | while(1) { | 64 | while(1) { |
67 | leaf = btrfs_buffer_leaf(path->nodes[0]); | 65 | leaf = btrfs_buffer_leaf(path->nodes[0]); |
68 | slot = path->slots[0]; | 66 | slot = path->slots[0]; |
@@ -982,7 +980,6 @@ static int find_free_extent(struct btrfs_trans_handle *trans, struct btrfs_root | |||
982 | struct btrfs_block_group_cache *block_group; | 980 | struct btrfs_block_group_cache *block_group; |
983 | int full_scan = 0; | 981 | int full_scan = 0; |
984 | int wrapped = 0; | 982 | int wrapped = 0; |
985 | u64 limit; | ||
986 | 983 | ||
987 | WARN_ON(num_blocks < 1); | 984 | WARN_ON(num_blocks < 1); |
988 | ins->flags = 0; | 985 | ins->flags = 0; |
@@ -1049,12 +1046,6 @@ check_failed: | |||
1049 | l = btrfs_buffer_leaf(path->nodes[0]); | 1046 | l = btrfs_buffer_leaf(path->nodes[0]); |
1050 | slot = path->slots[0]; | 1047 | slot = path->slots[0]; |
1051 | if (slot >= btrfs_header_nritems(&l->header)) { | 1048 | if (slot >= btrfs_header_nritems(&l->header)) { |
1052 | if (start_found) | ||
1053 | limit = last_block + | ||
1054 | (block_group->key.offset >> 1); | ||
1055 | else | ||
1056 | limit = search_start + | ||
1057 | (block_group->key.offset >> 1); | ||
1058 | ret = btrfs_next_leaf(root, path); | 1049 | ret = btrfs_next_leaf(root, path); |
1059 | if (ret == 0) | 1050 | if (ret == 0) |
1060 | continue; | 1051 | continue; |