Thread (5 messages) 5 messages, 3 authors, 2021-11-11

Re: [5.15 REGRESSION] iomap: Fix inline extent handling in iomap_readpage

From: Christoph Hellwig <hch@lst.de>
Date: 2021-11-10 12:55:31
Also in: linux-fsdevel, linux-xfs

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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help