summaryrefslogtreecommitdiff
path: root/quick-test.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-03-02 16:08:05 -0500
committerDavid Woodhouse <dwmw2@hera.kernel.org>2007-03-02 16:08:05 -0500
commit7da449a2f634d1807a5aaa8cd8dceb360032343e (patch)
tree0e24fc3d477ed17dd7f127022dddc55f30b8a782 /quick-test.c
parentbd530a2cff3945b4f79f591f936315b9f6d2929f (diff)
early reference counting
Diffstat (limited to 'quick-test.c')
-rw-r--r--quick-test.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/quick-test.c b/quick-test.c
index dbd00c3b..8255f79c 100644
--- a/quick-test.c
+++ b/quick-test.c
@@ -19,7 +19,7 @@ int main(int ac, char **av) {
int i;
int num;
int ret;
- int run_size = 100000;
+ int run_size = 1024;
int max_key = 100000000;
int tree_size = 0;
struct ctree_path path;
@@ -57,7 +57,7 @@ int main(int ac, char **av) {
init_path(&path);
if (i % 10000 == 0)
fprintf(stderr, "search %d:%d\n", num, i);
- ret = search_slot(root, &ins, &path, 0);
+ ret = search_slot(root, &ins, &path, 0, 0);
if (ret) {
print_tree(root, root->node);
printf("unable to find %d\n", num);
@@ -79,7 +79,7 @@ int main(int ac, char **av) {
num = next_key(i, max_key);
ins.objectid = num;
init_path(&path);
- ret = search_slot(root, &ins, &path, -1);
+ ret = search_slot(root, &ins, &path, -1, 1);
if (!ret) {
if (i % 10000 == 0)
fprintf(stderr, "del %d:%d\n", num, i);
@@ -117,7 +117,7 @@ int main(int ac, char **av) {
init_path(&path);
if (i % 10000 == 0)
fprintf(stderr, "search %d:%d\n", num, i);
- ret = search_slot(root, &ins, &path, 0);
+ ret = search_slot(root, &ins, &path, 0, 0);
if (ret) {
print_tree(root, root->node);
printf("unable to find %d\n", num);
@@ -131,7 +131,7 @@ int main(int ac, char **av) {
int slot;
ins.objectid = (u64)-1;
init_path(&path);
- ret = search_slot(root, &ins, &path, -1);
+ ret = search_slot(root, &ins, &path, -1, 1);
if (ret == 0)
BUG();