Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 25d04e4c authored by Lee Susman's avatar Lee Susman Committed by Gerrit - the friendly Code Review server
Browse files

mm: change max readahead size to 512KB



Change the VM_MAX_READAHEAD value from the default 128KB
to 512KB. This will allow the readahead window to grow to a maximum size
of 512KB, which greatly benefits to sequential read throughput.

Change-Id: Ia0780ea4e2a4ae0b6111485b72fb25376dcb1f96
Signed-off-by: default avatarLee Susman <lsusman@codeaurora.org>
Signed-off-by: default avatarVinayak Menon <vinmenon@codeaurora.org>
parent 54f3590a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2500,7 +2500,7 @@ int __must_check write_one_page(struct page *page);
void task_dirty_inc(struct task_struct *tsk);

/* readahead.c */
#define VM_MAX_READAHEAD	128	/* kbytes */
#define VM_MAX_READAHEAD	512	/* kbytes */
#define VM_MIN_READAHEAD	16	/* kbytes (includes current page) */

int force_page_cache_readahead(struct address_space *mapping, struct file *filp,