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>