diff options
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index b479cdfe3ee8..46188ee16623 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c | |||
@@ -932,7 +932,7 @@ static int setup_bdi(struct btrfs_fs_info *info, struct backing_dev_info *bdi) | |||
932 | #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23) | 932 | #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23) |
933 | bdi_init(bdi); | 933 | bdi_init(bdi); |
934 | #endif | 934 | #endif |
935 | bdi->ra_pages = default_backing_dev_info.ra_pages * 4; | 935 | bdi->ra_pages = default_backing_dev_info.ra_pages; |
936 | bdi->state = 0; | 936 | bdi->state = 0; |
937 | bdi->capabilities = default_backing_dev_info.capabilities; | 937 | bdi->capabilities = default_backing_dev_info.capabilities; |
938 | bdi->unplug_io_fn = btrfs_unplug_io_fn; | 938 | bdi->unplug_io_fn = btrfs_unplug_io_fn; |
@@ -1214,6 +1214,8 @@ struct btrfs_root *open_ctree(struct super_block *sb, | |||
1214 | (unsigned long long)fs_devices->num_devices); | 1214 | (unsigned long long)fs_devices->num_devices); |
1215 | goto fail_sb_buffer; | 1215 | goto fail_sb_buffer; |
1216 | } | 1216 | } |
1217 | fs_info->bdi.ra_pages *= btrfs_super_num_devices(disk_super); | ||
1218 | |||
1217 | nodesize = btrfs_super_nodesize(disk_super); | 1219 | nodesize = btrfs_super_nodesize(disk_super); |
1218 | leafsize = btrfs_super_leafsize(disk_super); | 1220 | leafsize = btrfs_super_leafsize(disk_super); |
1219 | sectorsize = btrfs_super_sectorsize(disk_super); | 1221 | sectorsize = btrfs_super_sectorsize(disk_super); |