diff options
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 @@ | |||
11 | #include "disk-io.h" | 11 | #include "disk-io.h" |
12 | 12 | ||
13 | static int allocated_blocks = 0; | 13 | static int allocated_blocks = 0; |
14 | int cache_size = 0; | ||
15 | int cache_max = 10000; | 14 | int cache_max = 10000; |
16 | 15 | ||
17 | static int check_tree_block(struct ctree_root *root, struct tree_buffer *buf) | 16 | 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) | |||
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; |