aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-08-27 16:49:44 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2007-08-27 16:49:44 -0400
commit2cc58cf24f69be8632a3b29d653c318bf3bd8c84 (patch)
treeca7eeec52113f8b4c1e45743da72e1b227aa4e34 /fs/btrfs/inode.c
parent320206112895c72f98e57570ae194689dcd7fe56 (diff)
Btrfs: Do more extensive readahead during tree searches
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r--fs/btrfs/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 398484179d82..7e4cf62ada5a 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -827,7 +827,7 @@ static int btrfs_readdir(struct file *filp, void *dirent, filldir_t filldir)
827 btrfs_set_key_type(&key, key_type); 827 btrfs_set_key_type(&key, key_type);
828 key.offset = filp->f_pos; 828 key.offset = filp->f_pos;
829 path = btrfs_alloc_path(); 829 path = btrfs_alloc_path();
830 path->reada = 1; 830 path->reada = 2;
831 ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); 831 ret = btrfs_search_slot(NULL, root, &key, path, 0, 0);
832 if (ret < 0) 832 if (ret < 0)
833 goto err; 833 goto err;