summaryrefslogtreecommitdiffstats
path: root/fs/ceph/super.c
diff options
context:
space:
mode:
authorYehuda Sadeh <yehuda@hq.newdream.net>2011-07-22 20:12:28 +0200
committerSage Weil <sage@newdream.net>2011-07-26 20:29:14 +0200
commite9852227431a0ed6ceda064f33e4218757acab6c (patch)
treee48c6a6ffb96780d562943dfc45c78a0a7edc0cd /fs/ceph/super.c
parentrbd: cancel watch request when releasing the device (diff)
downloadlinux-e9852227431a0ed6ceda064f33e4218757acab6c.tar.xz
linux-e9852227431a0ed6ceda064f33e4218757acab6c.zip
ceph: set up readahead size when rsize is not passed
This should improve the default read performance, as without it readahead is practically disabled. Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Diffstat (limited to '')
-rw-r--r--fs/ceph/super.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/ceph/super.c b/fs/ceph/super.c
index d4757c98ec14..d47c5ec7fb1f 100644
--- a/fs/ceph/super.c
+++ b/fs/ceph/super.c
@@ -779,6 +779,10 @@ static int ceph_register_bdi(struct super_block *sb,
fsc->backing_dev_info.ra_pages =
(fsc->mount_options->rsize + PAGE_CACHE_SIZE - 1)
>> PAGE_SHIFT;
+ else
+ fsc->backing_dev_info.ra_pages =
+ default_backing_dev_info.ra_pages;
+
err = bdi_register(&fsc->backing_dev_info, NULL, "ceph-%d",
atomic_long_inc_return(&bdi_seq));
if (!err)