diff options
Diffstat (limited to 'fs/btrfs/quick-test.c')
-rw-r--r-- | fs/btrfs/quick-test.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/quick-test.c b/fs/btrfs/quick-test.c index d9287cad35c9..3a2571617121 100644 --- a/fs/btrfs/quick-test.c +++ b/fs/btrfs/quick-test.c | |||
@@ -30,6 +30,8 @@ int main(int ac, char **av) { | |||
30 | 30 | ||
31 | root = open_ctree("dbfile", &super); | 31 | root = open_ctree("dbfile", &super); |
32 | srand(55); | 32 | srand(55); |
33 | ins.flags = 0; | ||
34 | btrfs_set_key_type(&ins, BTRFS_STRING_ITEM_KEY); | ||
33 | for (i = 0; i < run_size; i++) { | 35 | for (i = 0; i < run_size; i++) { |
34 | buf = malloc(64); | 36 | buf = malloc(64); |
35 | num = next_key(i, max_key); | 37 | num = next_key(i, max_key); |
@@ -39,7 +41,6 @@ int main(int ac, char **av) { | |||
39 | fprintf(stderr, "insert %d:%d\n", num, i); | 41 | fprintf(stderr, "insert %d:%d\n", num, i); |
40 | ins.objectid = num; | 42 | ins.objectid = num; |
41 | ins.offset = 0; | 43 | ins.offset = 0; |
42 | ins.flags = 0; | ||
43 | ret = btrfs_insert_item(root, &ins, buf, strlen(buf)); | 44 | ret = btrfs_insert_item(root, &ins, buf, strlen(buf)); |
44 | if (!ret) | 45 | if (!ret) |
45 | tree_size++; | 46 | tree_size++; |