Re: [RFC PATCH] mm: readahead: add readahead_shift into backing device

2019-03-25 Thread Fengguang Wu
On Mon, Mar 25, 2019 at 09:59:31AM -0700, Mark Salyzyn wrote: On 03/25/2019 05:16 AM, Fengguang Wu wrote: Martin, On Fri, Mar 22, 2019 at 11:46:11PM +0800, Martin Liu wrote: As the discussion https://lore.kernel.org/patchwork/patch/334982/ We know an open file's ra_pages might run out of sync

[RFC PATCH] mm: readahead: add readahead_shift into backing device

2019-03-22 Thread Martin Liu
As the discussion https://lore.kernel.org/patchwork/patch/334982/ We know an open file's ra_pages might run out of sync from bdi.ra_pages since sequential, random or error read. Current design is we have to ask users to reopen the file or use fdavise system call to get it sync. However, we might ha