aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/disk-io.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-03-02 10:06:43 -0500
committerDavid Woodhouse <dwmw2@hera.kernel.org>2007-03-02 10:06:43 -0500
commit77ce6846c40e83193df01295e5af437f8b6c7a2d (patch)
tree53aa4e00bb209bc283deb9d7d1d350e60481b5de /fs/btrfs/disk-io.c
parentf0930a37f1c096c3a8f6a17b1e251c7fdf4d4457 (diff)
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.c3
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 @@
11#include "disk-io.h" 11#include "disk-io.h"
12 12
13static int allocated_blocks = 0; 13static int allocated_blocks = 0;
14int cache_size = 0;
15int cache_max = 10000; 14int cache_max = 10000;
16 15
17static int check_tree_block(struct ctree_root *root, struct tree_buffer *buf) 16static 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)
36 list_del_init(&b->cache); 35 list_del_init(&b->cache);
37 tree_block_release(root, b); 36 tree_block_release(root, b);
38 if (root->cache_size < cache_max) 37 if (root->cache_size < cache_max)
39 return 0; 38 break;
40 } 39 }
41 } 40 }
42 return 0; 41 return 0;