On Wed, Jan 25, 2023 at 03:23:51PM +0100, Jan Kara 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! I don't have a pull request pending for next merge window, so probably best if Andrew picks it up.