aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/ctree.c')
-rw-r--r--fs/btrfs/ctree.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c
index f82f8db02275..ac61c50a3311 100644
--- a/fs/btrfs/ctree.c
+++ b/fs/btrfs/ctree.c
@@ -1285,16 +1285,16 @@ static noinline void reada_for_search(struct btrfs_root *root,
1285 } 1285 }
1286 search = btrfs_node_blockptr(node, nr); 1286 search = btrfs_node_blockptr(node, nr);
1287 if ((search >= lowest_read && search <= highest_read) || 1287 if ((search >= lowest_read && search <= highest_read) ||
1288 (search < lowest_read && lowest_read - search <= 32768) || 1288 (search < lowest_read && lowest_read - search <= 16384) ||
1289 (search > highest_read && search - highest_read <= 32768)) { 1289 (search > highest_read && search - highest_read <= 16384)) {
1290 readahead_tree_block(root, search, blocksize, 1290 readahead_tree_block(root, search, blocksize,
1291 btrfs_node_ptr_generation(node, nr)); 1291 btrfs_node_ptr_generation(node, nr));
1292 nread += blocksize; 1292 nread += blocksize;
1293 } 1293 }
1294 nscan++; 1294 nscan++;
1295 if (path->reada < 2 && (nread > (256 * 1024) || nscan > 32)) 1295 if (path->reada < 2 && (nread > (64 * 1024) || nscan > 32))
1296 break; 1296 break;
1297 if(nread > (1024 * 1024) || nscan > 128) 1297 if(nread > (256 * 1024) || nscan > 128)
1298 break; 1298 break;
1299 1299
1300 if (search < lowest_read) 1300 if (search < lowest_read)