From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; dkim=none Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 043E119B1; Tue, 28 Nov 2023 21:39:51 -0800 (PST) Received: by verein.lst.de (Postfix, from userid 2407) id A430868AA6; Wed, 29 Nov 2023 06:39:48 +0100 (CET) Date: Wed, 29 Nov 2023 06:39:48 +0100 From: Christoph Hellwig To: "Darrick J. Wong" Cc: Christoph Hellwig , Ritesh Harjani , Christian Brauner , Chandan Babu R , Zhang Yi , linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH 02/13] iomap: treat inline data in iomap_writepage_map as an I/O error Message-ID: <20231129053948.GB1385@lst.de> References: <20231126124720.1249310-3-hch@lst.de> <87bkbfssb8.fsf@doe.com> <20231127063325.GB27241@lst.de> <20231129044057.GH4167244@frogsfrogsfrogs> Precedence: bulk X-Mailing-List: linux-xfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231129044057.GH4167244@frogsfrogsfrogs> User-Agent: Mutt/1.5.17 (2007-11-01) On Tue, Nov 28, 2023 at 08:40:57PM -0800, Darrick J. Wong wrote: > > I think they way it currently works for gfs2 is that writeback from the > > page cache never goes back into the inline area. > > > > If we ever have a need to actually write back inline data we could > > change this code to support it, but right now I just want to make the > > assert more consistent. > > Question: Do we even /want/ writeback to be initiating transactions > to log the inline data? I suppose for ext4/jbd2 that would be the least > inefficient time to do that. I think in general not, but it really depends on the file system architecture. In other words: don't touch the current behavior unless we have a good reason. I just want to make the error check a little saner..