summaryrefslogtreecommitdiff
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 @@
/* for testing only */
int next_key(int i, int max_key) {
return rand() % max_key;
- //return i;
+ // return i;
}
int main(int ac, char **av) {
@@ -44,6 +44,9 @@ int main(int ac, char **av) {
if (!ret)
tree_size++;
free(buf);
+ if (i == run_size - 5) {
+ commit_transaction(root, &super);
+ }
}
close_ctree(root, &super);