Re: [RFC PATCH V5] mm readahead: Fix readahead fail for no local memory and limit readahead pages
From: Andrew Morton
Date: Thu Feb 13 2014 - 19:45:59 EST
On Thu, 13 Feb 2014 16:37:53 -0800 Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
> unsigned long max_sane_readahead(unsigned long nr)
> {
> return min(nr, 128);
> }
I bet nobody will notice.
It should be 128*4096/PAGE_CACHE_SIZE so that variations in PAGE_SIZE
don't affect readahead behaviour.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/