aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/tests/btrfs-tests.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/tests/btrfs-tests.c')
-rw-r--r--fs/btrfs/tests/btrfs-tests.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/fs/btrfs/tests/btrfs-tests.c b/fs/btrfs/tests/btrfs-tests.c
index 0e1e61a7ec23..f54bf450bad3 100644
--- a/fs/btrfs/tests/btrfs-tests.c
+++ b/fs/btrfs/tests/btrfs-tests.c
@@ -137,7 +137,6 @@ static void btrfs_free_dummy_fs_info(struct btrfs_fs_info *fs_info)
137 void **slot; 137 void **slot;
138 138
139 spin_lock(&fs_info->buffer_lock); 139 spin_lock(&fs_info->buffer_lock);
140restart:
141 radix_tree_for_each_slot(slot, &fs_info->buffer_radix, &iter, 0) { 140 radix_tree_for_each_slot(slot, &fs_info->buffer_radix, &iter, 0) {
142 struct extent_buffer *eb; 141 struct extent_buffer *eb;
143 142
@@ -147,7 +146,7 @@ restart:
147 /* Shouldn't happen but that kind of thinking creates CVE's */ 146 /* Shouldn't happen but that kind of thinking creates CVE's */
148 if (radix_tree_exception(eb)) { 147 if (radix_tree_exception(eb)) {
149 if (radix_tree_deref_retry(eb)) 148 if (radix_tree_deref_retry(eb))
150 goto restart; 149 slot = radix_tree_iter_retry(&iter);
151 continue; 150 continue;
152 } 151 }
153 spin_unlock(&fs_info->buffer_lock); 152 spin_unlock(&fs_info->buffer_lock);
@@ -189,12 +188,6 @@ btrfs_alloc_dummy_block_group(unsigned long length)
189 kfree(cache); 188 kfree(cache);
190 return NULL; 189 return NULL;
191 } 190 }
192 cache->fs_info = btrfs_alloc_dummy_fs_info();
193 if (!cache->fs_info) {
194 kfree(cache->free_space_ctl);
195 kfree(cache);
196 return NULL;
197 }
198 191
199 cache->key.objectid = 0; 192 cache->key.objectid = 0;
200 cache->key.offset = length; 193 cache->key.offset = length;