Re: [PATCH] mm/filemap: do not allocate cache pages beyond end of file at read

From: Steven Whitehouse
Date: Mon Nov 25 2019 - 05:53:08 EST


Hi,

On 22/11/2019 23:59, Andreas GrÃnbacher wrote:
Hi,

Am Do., 31. Okt. 2019 um 12:43 Uhr schrieb Steven Whitehouse
<swhiteho@xxxxxxxxxx>:
Andreas, Bob, have I missed anything here?
I've looked into this a bit, and it seems that there's a reasonable
way to get rid of the lock taking in ->readpage and ->readpages
without a lot of code duplication. My proposal for that consists of
multiple patches, so I've posted it separately:

https://lore.kernel.org/linux-fsdevel/20191122235324.17245-1-agruenba@xxxxxxxxxx/T/#t

Thanks,
Andreas

Andreas, thanks for taking a look at this.

Linus, is that roughly what you were thinking of?

Ronnie, Steve, can the same approach perhaps work for CIFS?

Steve.