aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/random-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/random-test.c')
-rw-r--r--fs/btrfs/random-test.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/btrfs/random-test.c b/fs/btrfs/random-test.c
index 34a15841ebd3..e767528bc521 100644
--- a/fs/btrfs/random-test.c
+++ b/fs/btrfs/random-test.c
@@ -173,7 +173,7 @@ static int empty_tree(struct ctree_root *root, struct radix_tree_root *radix,
173 path.slots[0] -= 1; 173 path.slots[0] -= 1;
174 } 174 }
175 slot = path.slots[0]; 175 slot = path.slots[0];
176 found = path.nodes[0]->leaf.items[slot].key.objectid; 176 found=btrfs_key_objectid(&path.nodes[0]->leaf.items[slot].key);
177 ret = del_item(root, &path); 177 ret = del_item(root, &path);
178 count++; 178 count++;
179 if (ret) { 179 if (ret) {
@@ -274,7 +274,8 @@ static int fill_radix(struct ctree_root *root, struct radix_tree_root *radix)
274 slot -= 1; 274 slot -= 1;
275 } 275 }
276 for (i = slot; i >= 0; i--) { 276 for (i = slot; i >= 0; i--) {
277 found = path.nodes[0]->leaf.items[i].key.objectid; 277 found = btrfs_key_objectid(&path.nodes[0]->
278 leaf.items[i].key);
278 radix_tree_preload(GFP_KERNEL); 279 radix_tree_preload(GFP_KERNEL);
279 ret = radix_tree_insert(radix, found, (void *)found); 280 ret = radix_tree_insert(radix, found, (void *)found);
280 if (ret) { 281 if (ret) {