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 | 77ce6846c40e83193df01295e5af437f8b6c7a2d (patch) | |
tree | 53aa4e00bb209bc283deb9d7d1d350e60481b5de /fs/btrfs/disk-io.c | |
parent | f0930a37f1c096c3a8f6a17b1e251c7fdf4d4457 (diff) | |
download | talos-obmc-linux-77ce6846c40e83193df01295e5af437f8b6c7a2d.tar.gz talos-obmc-linux-77ce6846c40e83193df01295e5af437f8b6c7a2d.zip |
Btrfs: period commit during initial fill in the random tester
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index f7ca5362291e..b1a8149bbc84 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -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; |