]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ceph: enable readahead
authorSage Weil <sage@newdream.net>
Fri, 16 Oct 2009 21:44:35 +0000 (14:44 -0700)
committerSage Weil <sage@newdream.net>
Fri, 16 Oct 2009 21:44:43 +0000 (14:44 -0700)
Initialized bdi->ra_pages to enable readahead.  Use 512KB default.

Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/super.c
fs/ceph/super.h

index 7f7d4759a4438a63934c85e1dcf8ef3f5796e029..ab950fce4172344dbb4dade2f6d5bf24bd4e2649 100644 (file)
@@ -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;
index 0bbf58ab607e25f93c999f3e99df6eae55373837..75556e97e865ecf7c5e8f1a53882d6a45ad1d44a 100644 (file)
@@ -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)