diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-03-02 10:06:43 -0500 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-03-02 10:06:43 -0500 |
commit | bd530a2cff3945b4f79f591f936315b9f6d2929f (patch) | |
tree | c422682b2f1a79e91733903e3a6c32e975552309 /disk-io.c | |
parent | 11bc1cd2a565ab90f16dba2da40cba5e30128783 (diff) |
period commit during initial fill in the random tester
Diffstat (limited to 'disk-io.c')
-rw-r--r-- | disk-io.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -11,7 +11,6 @@ #include "disk-io.h" static int allocated_blocks = 0; -int cache_size = 0; int cache_max = 10000; static int check_tree_block(struct ctree_root *root, struct tree_buffer *buf) @@ -36,7 +35,7 @@ static int free_some_buffers(struct ctree_root *root) list_del_init(&b->cache); tree_block_release(root, b); if (root->cache_size < cache_max) - return 0; + break; } } return 0; |