Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 128733
b: refs/heads/master
c: 4575c9c
h: refs/heads/master
i:
  128731: 6246454
v: v3
  • Loading branch information
Chris Mason committed Sep 25, 2008
1 parent 67c233b commit dd15bc6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9ad6b7bc2e00ba02f915cffd5b6bcd6564bb2c75
refs/heads/master: 4575c9cceeca2f51c50536850e15e1dc5187f3d9
4 changes: 3 additions & 1 deletion trunk/fs/btrfs/disk-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,7 @@ static int setup_bdi(struct btrfs_fs_info *info, struct backing_dev_info *bdi)
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23)
bdi_init(bdi);
#endif
bdi->ra_pages = default_backing_dev_info.ra_pages * 4;
bdi->ra_pages = default_backing_dev_info.ra_pages;
bdi->state = 0;
bdi->capabilities = default_backing_dev_info.capabilities;
bdi->unplug_io_fn = btrfs_unplug_io_fn;
Expand Down Expand Up @@ -1214,6 +1214,8 @@ struct btrfs_root *open_ctree(struct super_block *sb,
(unsigned long long)fs_devices->num_devices);
goto fail_sb_buffer;
}
fs_info->bdi.ra_pages *= btrfs_super_num_devices(disk_super);

nodesize = btrfs_super_nodesize(disk_super);
leafsize = btrfs_super_leafsize(disk_super);
sectorsize = btrfs_super_sectorsize(disk_super);
Expand Down

0 comments on commit dd15bc6

Please sign in to comment.