mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
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: Lee Susman <lsusman@codeaurora.org> [vinmenon@codeaurora.org: switch to VM_READAHEAD_PAGES on 5.4] Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
This commit is contained in:
parent
6e625d330f
commit
87e7e1b2ec
1 changed files with 1 additions and 1 deletions
|
|
@ -2542,7 +2542,7 @@ int __must_check write_one_page(struct page *page);
|
|||
void task_dirty_inc(struct task_struct *tsk);
|
||||
|
||||
/* readahead.c */
|
||||
#define VM_READAHEAD_PAGES (SZ_128K / PAGE_SIZE)
|
||||
#define VM_READAHEAD_PAGES (SZ_512K / PAGE_SIZE)
|
||||
|
||||
int force_page_cache_readahead(struct address_space *mapping, struct file *filp,
|
||||
pgoff_t offset, unsigned long nr_to_read);
|
||||
|
|
|
|||
Loading…
Reference in a new issue