diff options
Diffstat (limited to 'fs/btrfs/ctree.c')
-rw-r--r-- | fs/btrfs/ctree.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c index 7645ab3259ea..25dc7b2f7426 100644 --- a/fs/btrfs/ctree.c +++ b/fs/btrfs/ctree.c | |||
@@ -1047,14 +1047,14 @@ int next_leaf(struct ctree_root *root, struct ctree_path *path) | |||
1047 | return 0; | 1047 | return 0; |
1048 | } | 1048 | } |
1049 | 1049 | ||
1050 | /* some sample code to insert,search & delete items */ | ||
1051 | #if 0 | ||
1050 | /* for testing only */ | 1052 | /* for testing only */ |
1051 | int next_key(int i, int max_key) { | 1053 | int next_key(int i, int max_key) { |
1052 | return rand() % max_key; | 1054 | return rand() % max_key; |
1053 | //return i; | 1055 | //return i; |
1054 | } | 1056 | } |
1055 | |||
1056 | int main() { | 1057 | int main() { |
1057 | struct ctree_root *root; | ||
1058 | struct key ins; | 1058 | struct key ins; |
1059 | struct key last = { (u64)-1, 0, 0}; | 1059 | struct key last = { (u64)-1, 0, 0}; |
1060 | char *buf; | 1060 | char *buf; |
@@ -1066,6 +1066,7 @@ int main() { | |||
1066 | int tree_size = 0; | 1066 | int tree_size = 0; |
1067 | struct ctree_path path; | 1067 | struct ctree_path path; |
1068 | struct ctree_super_block super; | 1068 | struct ctree_super_block super; |
1069 | struct ctree_root *root; | ||
1069 | 1070 | ||
1070 | radix_tree_init(); | 1071 | radix_tree_init(); |
1071 | 1072 | ||
@@ -1207,3 +1208,4 @@ int main() { | |||
1207 | close_ctree(root); | 1208 | close_ctree(root); |
1208 | return 0; | 1209 | return 0; |
1209 | } | 1210 | } |
1211 | #endif | ||