summaryrefslogtreecommitdiff
path: root/ctree.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-02-26 10:40:21 -0500
committerDavid Woodhouse <dwmw2@hera.kernel.org>2007-02-26 10:40:21 -0500
commit8f3b86bae341d96e0aef7b7052bdf30e25df7d29 (patch)
treeb54d4c7141ca746caf1a64b7d0510199c519487c /ctree.c
parentf463391fd2bfe9041d79adaf61491c153cf41624 (diff)
Add fsx-style randomized tree tester
Add debug-tree command to print the tree Add extent-tree.c to the repo Comment ctree.h
Diffstat (limited to 'ctree.c')
-rw-r--r--ctree.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ctree.c b/ctree.c
index 7645ab32..25dc7b2f 100644
--- a/ctree.c
+++ b/ctree.c
@@ -1047,14 +1047,14 @@ int next_leaf(struct ctree_root *root, struct ctree_path *path)
return 0;
}
+/* some sample code to insert,search & delete items */
+#if 0
/* for testing only */
int next_key(int i, int max_key) {
return rand() % max_key;
//return i;
}
-
int main() {
- struct ctree_root *root;
struct key ins;
struct key last = { (u64)-1, 0, 0};
char *buf;
@@ -1066,6 +1066,7 @@ int main() {
int tree_size = 0;
struct ctree_path path;
struct ctree_super_block super;
+ struct ctree_root *root;
radix_tree_init();
@@ -1207,3 +1208,4 @@ int main() {
close_ctree(root);
return 0;
}
+#endif