Initial Contribution
msm-2.6.38: tag AU_LINUX_ANDROID_GINGERBREAD.02.03.04.00.142
Signed-off-by: Bryan Huntsman <bryanh@codeaurora.org>
diff --git a/drivers/mtd/mtd_blkdevs.c b/drivers/mtd/mtd_blkdevs.c
index ca38569..25f66e4 100644
--- a/drivers/mtd/mtd_blkdevs.c
+++ b/drivers/mtd/mtd_blkdevs.c
@@ -424,6 +424,13 @@
goto error3;
new->rq->queuedata = new;
+
+ /*
+ * Empirical measurements revealed that read ahead values larger than
+ * 4 slowed down boot time, so start out with this small value.
+ */
+ new->rq->backing_dev_info.ra_pages = (4 * 1024) / PAGE_CACHE_SIZE;
+
blk_queue_logical_block_size(new->rq, tr->blksize);
if (tr->discard) {