Btrfs: Use a higher default ra pages
authorChris Mason <chris.mason@oracle.com>
Wed, 26 Mar 2008 16:02:55 +0000 (12:02 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:04:01 +0000 (11:04 -0400)
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/disk-io.c

index 6a70e4916ab4174e843d6bd793edc849304bb6c0..134b722587ecb4f09453d362376a8968e262886d 100644 (file)
@@ -694,7 +694,7 @@ void btrfs_unplug_io_fn(struct backing_dev_info *bdi, struct page *page)
 static int setup_bdi(struct btrfs_fs_info *info, struct backing_dev_info *bdi)
 {
        bdi_init(bdi);
-       bdi->ra_pages   = default_backing_dev_info.ra_pages;
+       bdi->ra_pages   = default_backing_dev_info.ra_pages * 4;
        bdi->state              = 0;
        bdi->capabilities       = default_backing_dev_info.capabilities;
        bdi->unplug_io_fn       = btrfs_unplug_io_fn;