summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2009-10-16 21:44:35 (GMT)
committerSage Weil <sage@newdream.net>2009-10-16 21:44:43 (GMT)
commit8fa9765576875200a7412a5300b5f0537211f038 (patch)
tree1d6417a0d6731e905dc0cffb09506f1796e58f71
parent76e3b390d41db9d69e254a09dd1aedd3e6aac25f (diff)
downloadlinux-fsl-qoriq-8fa9765576875200a7412a5300b5f0537211f038.tar.xz
ceph: enable readahead
Initialized bdi->ra_pages to enable readahead. Use 512KB default. Signed-off-by: Sage Weil <sage@newdream.net>
-rw-r--r--fs/ceph/super.c1
-rw-r--r--fs/ceph/super.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/fs/ceph/super.c b/fs/ceph/super.c
index 7f7d475..ab950fc 100644
--- a/fs/ceph/super.c
+++ b/fs/ceph/super.c
@@ -327,6 +327,7 @@ static int parse_mount_args(struct ceph_client *client,
args->mount_timeout = CEPH_MOUNT_TIMEOUT_DEFAULT; /* seconds */
args->caps_wanted_delay_min = CEPH_CAPS_WANTED_DELAY_MIN_DEFAULT;
args->caps_wanted_delay_max = CEPH_CAPS_WANTED_DELAY_MAX_DEFAULT;
+ args->rsize = CEPH_MOUNT_RSIZE_DEFAULT;
args->snapdir_name = kstrdup(CEPH_SNAPDIRNAME_DEFAULT, GFP_KERNEL);
args->cap_release_safety = CEPH_CAPS_PER_RELEASE * 4;
args->max_readdir = 1024;
diff --git a/fs/ceph/super.h b/fs/ceph/super.h
index 0bbf58a..75556e9 100644
--- a/fs/ceph/super.h
+++ b/fs/ceph/super.h
@@ -69,7 +69,7 @@ struct ceph_mount_args {
* defaults
*/
#define CEPH_MOUNT_TIMEOUT_DEFAULT 60
-#define CEPH_MOUNT_RSIZE_DEFAULT (128*1024) /* readahead */
+#define CEPH_MOUNT_RSIZE_DEFAULT (512*1024) /* readahead */
#define CEPH_MSG_MAX_FRONT_LEN (16*1024*1024)
#define CEPH_MSG_MAX_DATA_LEN (16*1024*1024)