From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from verein.lst.de ([213.95.11.211]:38419 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752050AbeGBMwA (ORCPT ); Mon, 2 Jul 2018 08:52:00 -0400 Date: Mon, 2 Jul 2018 14:52:30 +0200 From: Christoph Hellwig To: Andreas Gruenbacher Cc: Christoph Hellwig , cluster-devel , linux-ext4 , linux-fsdevel Subject: Re: [PATCH] iomap: Add inline data support to iomap_readpage_actor Message-ID: <20180702125230.GB3366@lst.de> References: <20180615130209.1970-2-hch@lst.de> <20180629144444.28826-1-agruenba@redhat.com> <20180701062141.GA27281@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Sun, Jul 01, 2018 at 11:43:43PM +0200, Andreas Gruenbacher wrote: > > + WARN_ON_ONCE(plen != PAGE_SIZE); > > Inline mappings only extend to the end of the file (iomap->offset == 0 > && iomap->length == inode->i_size), so length and plen will be > inode->i_size here. This assertion should just be removed. But we should generally still return PAGE_SIZE from iomap_begin because we cover the whole page and zero the rest, don't we? Either way, I can remove the assert from now.