Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5275349ybp; Mon, 7 Oct 2019 23:43:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqxhCeid1ZkSYiHIeQMvNGD5ccG0nEdqlOqOrkJEKbaqYHUasTQPL0QwF5zQmv/0SKeA5kXk X-Received: by 2002:a05:6402:1212:: with SMTP id c18mr32714499edw.259.1570516996748; Mon, 07 Oct 2019 23:43:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570516996; cv=none; d=google.com; s=arc-20160816; b=dOTyX6r0sdD9xgqdnt79u6JD91N/a0mhMfcgoHfiboePHqm3mbedg1fPu9PntWNRKF 71HRU1oQMZbdc/0Hdu/j62+EyDWNexjQJzgVjybPZvTgQ9d1oenjREutV2xjZj0/QdKv Mj+UtewAWs/BfPBwPydkMODxW31zgCaemkzXVdOphhD9XgCH55AhkLlfw/yp7SZGkhn6 XKdA8z9DujFU4HyE0LEA2fveFPfMKncxuF61y6udaGgIH6IuFkzBaHpxC7fUftDAeUPZ PU5UfrRuVYbk/hzntIzz6bWzmA6PdpP14hHs4W4pP8grR/EsHlPsiM35bmt9Dql8pUqM C0jA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=YnGSVeSqCJSb7w+yj/FIDyjMFpnyNdAZEh/QH71VZwQ=; b=vTQTmTgj6sLB3RRuPHS9hqXEY5Rsmy2am5EuNKFMaGnkzTeXNeh1qrRkX57myqK+1K /s7394/RVWYgwUq6bxhaXpznPML1QI2aMKutWZMN4lASZVcpiaJ76ig7f1GBAvfRaQ/s 4PpJl8xR95MSixiJIvIcIudRIjEr6lJGLUNduh/gniRmBb/8gEQlu9/8Ln7jAlYWArga uZAWec3Z+CY1UdEjP40bxlGDDxSUbMR9FiQXU9q1OHACFhT/yRvF0Bp966LvrWQrP+Yv 4cTz8hKiHxwsj+xz2hfKqMaMGBEpjYLMR1kinOeCJ4nmeLwSVUExnbpWCvf0cIet9bTC s30w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ay11si7234328edb.215.2019.10.07.23.42.52; Mon, 07 Oct 2019 23:43:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730079AbfJHGmj (ORCPT + 99 others); Tue, 8 Oct 2019 02:42:39 -0400 Received: from verein.lst.de ([213.95.11.211]:44117 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729693AbfJHGmj (ORCPT ); Tue, 8 Oct 2019 02:42:39 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 743D468B20; Tue, 8 Oct 2019 08:42:35 +0200 (CEST) Date: Tue, 8 Oct 2019 08:42:35 +0200 From: Christoph Hellwig To: Dave Chinner Cc: Christoph Hellwig , "Darrick J . Wong" , Damien Le Moal , Andreas Gruenbacher , linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Carlos Maiolino Subject: Re: [PATCH 08/11] xfs: use a struct iomap in xfs_writepage_ctx Message-ID: <20191008064235.GB30465@lst.de> References: <20191006154608.24738-1-hch@lst.de> <20191006154608.24738-9-hch@lst.de> <20191007215423.GB16973@dread.disaster.area> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191007215423.GB16973@dread.disaster.area> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 08, 2019 at 08:54:24AM +1100, Dave Chinner wrote: > > + if (whichfork == XFS_COW_FORK) > > + flags |= IOMAP_F_SHARED; > > That seems out of place - I don't see anywhere in this patch that > moves/removes setting the IOMAP_F_SHARED flag. i.e this looks like a > change of behaviour.... It is a change of representation, not behavior. Before this patch we used a struct xfs_bmbt_irec + int fork in xfs_writepage_ctx to hold the current writeback extent. We now use a iomap, which wants this flag to have the fork information. The fork flag is removed later when switching to the iomap implementation to avoid extra churn. Before Darricks reshuffling there was an extra patch making this transition more clear: http://git.infradead.org/users/hch/xfs.git/commitdiff/5274577088ffcfcfbf735dcfe4153d699027caad but since the series was turned upside down and creates the iomap code out of the thin air all these easy to understand and verify step by step changes to the existing xfs codebase got lost unfortunately.