diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-08-27 16:49:44 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-08-27 16:49:44 -0400 |
commit | 2cc58cf24f69be8632a3b29d653c318bf3bd8c84 (patch) | |
tree | ca7eeec52113f8b4c1e45743da72e1b227aa4e34 /fs/btrfs/extent-tree.c | |
parent | 320206112895c72f98e57570ae194689dcd7fe56 (diff) |
Btrfs: Do more extensive readahead during tree searches
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r-- | fs/btrfs/extent-tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index b3641234473f..4049aadbeda9 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c | |||
@@ -52,7 +52,7 @@ static int cache_block_group(struct btrfs_root *root, | |||
52 | path = btrfs_alloc_path(); | 52 | path = btrfs_alloc_path(); |
53 | if (!path) | 53 | if (!path) |
54 | return -ENOMEM; | 54 | return -ENOMEM; |
55 | path->reada = 1; | 55 | path->reada = 2; |
56 | key.objectid = block_group->key.objectid; | 56 | key.objectid = block_group->key.objectid; |
57 | key.flags = 0; | 57 | key.flags = 0; |
58 | key.offset = 0; | 58 | key.offset = 0; |
@@ -1015,7 +1015,7 @@ check_failed: | |||
1015 | ins->objectid = search_start; | 1015 | ins->objectid = search_start; |
1016 | ins->offset = 0; | 1016 | ins->offset = 0; |
1017 | start_found = 0; | 1017 | start_found = 0; |
1018 | path->reada = 1; | 1018 | path->reada = 2; |
1019 | 1019 | ||
1020 | ret = btrfs_search_slot(trans, root, ins, path, 0, 0); | 1020 | ret = btrfs_search_slot(trans, root, ins, path, 0, 0); |
1021 | if (ret < 0) | 1021 | if (ret < 0) |