From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Date: Wed, 10 Nov 2021 13:55:27 +0100 Subject: [Cluster-devel] [5.15 REGRESSION] iomap: Fix inline extent handling in iomap_readpage In-Reply-To: <20211110113842.517426-1-agruenba@redhat.com> References: <20211110113842.517426-1-agruenba@redhat.com> Message-ID: <20211110125527.GA25465@lst.de> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On Wed, Nov 10, 2021 at 12:38:42PM +0100, Andreas Gruenbacher wrote: > + if (iomap->type == IOMAP_INLINE) { > + /* > + * The filesystem sets iomap->length to the size of the inline > + * data. We're at the end of the file, so we know that the > + * rest of the page needs to be zeroed out. > + */ > + iomap->length = iomap_read_inline_data(iter, page); > + return iomap->length; You can't just change iomap->length here. Fix the file system to return the right length, please.