summaryrefslogtreecommitdiff
path: root/include/linux/mm.h
diff options
context:
space:
mode:
authorWei Wang <wvw@google.com>2018-02-28 13:34:22 -0800
committerMichael Bestas <mkbestas@lineageos.org>2019-12-23 23:43:37 +0200
commit70fde908c821bac2b2a26d73a7a4e29bd2602259 (patch)
treef4c528ec3fa5834d325412ec1736c87b568c552f /include/linux/mm.h
parent461e608fedcb9c117ac72546cc1503c80be80cad (diff)
ANDROID: mm: add config for default readahead size
Change the VM_MAX_READAHED value from the default 128KB to a configurable value. This will allow the readahead window to grow to a maximum size bigger than 128KB, which greatly benefits to sequential read throughput and thus boot performance. Bug: 62413151 Test: boot walleye 100ms faster Change-Id: Iad448cf1198056de46654dcb409466802b3b908d Signed-off-by: Wei Wang <wvw@google.com>
Diffstat (limited to 'include/linux/mm.h')
-rw-r--r--include/linux/mm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h
index ecdabf3597ae..ed48a15d6363 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -2008,7 +2008,7 @@ int write_one_page(struct page *page, int wait);
void task_dirty_inc(struct task_struct *tsk);
/* readahead.c */
-#define VM_MAX_READAHEAD 512 /* kbytes */
+#define VM_MAX_READAHEAD CONFIG_VM_MAX_READAHEAD /* kbytes */
#define VM_MIN_READAHEAD 16 /* kbytes (includes current page) */
int force_page_cache_readahead(struct address_space *mapping, struct file *filp,