aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/quick-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/quick-test.c')
-rw-r--r--fs/btrfs/quick-test.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/btrfs/quick-test.c b/fs/btrfs/quick-test.c
index 6400c7100a6a..ccca9b2c14a3 100644
--- a/fs/btrfs/quick-test.c
+++ b/fs/btrfs/quick-test.c
@@ -9,7 +9,7 @@
9/* for testing only */ 9/* for testing only */
10int next_key(int i, int max_key) { 10int next_key(int i, int max_key) {
11 return rand() % max_key; 11 return rand() % max_key;
12 //return i; 12 // return i;
13} 13}
14 14
15int main(int ac, char **av) { 15int main(int ac, char **av) {
@@ -44,6 +44,9 @@ int main(int ac, char **av) {
44 if (!ret) 44 if (!ret)
45 tree_size++; 45 tree_size++;
46 free(buf); 46 free(buf);
47 if (i == run_size - 5) {
48 commit_transaction(root, &super);
49 }
47 50
48 } 51 }
49 close_ctree(root, &super); 52 close_ctree(root, &super);