On Wed, 25 Jan 2023 15:23:51 +0100 Jan Kara <jack@xxxxxxx> wrote: > On Sun 08-01-23 09:25:10, Christoph Hellwig wrote: > > On Tue, Jan 03, 2023 at 11:44:30AM +0100, Jan Kara wrote: > > > When __mpage_writepage() is called for a page beyond EOF, it will go and > > > allocate all blocks underlying the page. This is not only unnecessary > > > but this way blocks can get leaked (e.g. if a page beyond EOF is marked > > > dirty but in the end write fails and i_size is not extended). > > > > Looks good: > > > > Reviewed-by: Christoph Hellwig <hch@xxxxxx> > > Matthew, Andrew, can one of you please pick up this fix? Thanks! > This was added to mm-stable (and hence linux-next) on Jan 18, as 4b89a37d54a0b.