Skip to content

Commit

Permalink
mm: set to 8 megabytes for address_space-level file read-ahead pages …
Browse files Browse the repository at this point in the history
…size

Signed-off-by: Alexandre Frade <kernel@xanmod.org>
  • Loading branch information
xanmod committed Oct 29, 2020
1 parent 1db4706 commit 83e82a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/mm.h
Original file line number Diff line number Diff line change
Expand Up @@ -2450,7 +2450,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_2M / PAGE_SIZE)
#define VM_READAHEAD_PAGES (SZ_8M / PAGE_SIZE)

int force_page_cache_readahead(struct address_space *mapping, struct file *filp,
pgoff_t offset, unsigned long nr_to_read);
Expand Down

0 comments on commit 83e82a6

Please sign in to comment.