From: Christoph Hellwig Date: Thu, 11 Nov 2021 08:25:06 +0100 Subject: [Cluster-devel] [5.15 REGRESSION] iomap: Fix inline extent handling in iomap_readpage In-Reply-To: References: <20211110113842.517426-1-agruenba@redhat.com> <20211110125527.GA25465@lst.de> Message-ID: <20211111072506.GB30478@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 03:52:01PM +0100, Andreas Gruenbacher wrote: > Hmm, that doesn't make sense to me: the filesystem doesn't know that > iomap_readpage will pad to page boundaries. This happens at the iomap > layer, so the iomap layer should also deal with the consequences. > We're using different alignment rules here and for direct I/O, so that > makes fake-aligning the extent size in iomap_begin even more > questionable. > > "Fixing" the extent size the filesystem returns would also break > direct I/O. We could add some additional padding code to > iomap_dio_inline_iter to deal with that, but currently, there's no > need for that. The iomap mapping sizes are read-only to iomap for a good reason. You can't just break that design.