Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4836120ybp; Mon, 7 Oct 2019 14:55:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqxPH9PK47SCcx6AILdpqaHyp0O626vRQVa2aHhpwq6j0r66ZTwpcuFP4h/CwlnQkse2HOdK X-Received: by 2002:a05:6402:74c:: with SMTP id p12mr30755354edy.135.1570485305874; Mon, 07 Oct 2019 14:55:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570485305; cv=none; d=google.com; s=arc-20160816; b=pGCImMI2dvj8JdHSusaAvuVfymTNg/8fZRLe1gqJ+4Vp5AG9N9T3H8sKezc2iPsPB7 R7QMpsIFVUfYUIDCFOpVYdmdPcLVJTN7C8+VuYRGceg66LGgKvjMRbbuvwzoQz8en54R DLQrzsY0c5TPszOaPcQrVVT/bJ+Pj7y5W1BIFk31EjBdwhAODmbrZV8M4VqOpzbDhPIa TI4Nez783K1vY5hDL3VFGX3kihaKQpzOzOMnfbK0/E5EUkNzpQwwtwlVQp98a6jPbDo6 0gqM9iuBicWmFE01XDOp6CMqmfapnYAWQA6rhBb/ptRHwjXQ9JJC6GtzvWi3IEvho+Ni iu+Q== 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=nuR/qoARKMPScWNbWqAXhcfabVGiYPqIJWDhZOV1FyI=; b=ufWeQM67mxWdivVZV9yWJkxyXVfhT8Bz6TDabLZdd0wnuMzL7AG8zoxCY0AnV98irP WM9O8N11yS61hOA6EV49fFwXb+cbp/Z051sHNNnKpY/IlpA+3dYJewijKnuwkIIJn1gF 9i50uW31GeZq3hweYOGPibhLtWIDhZ0tASPQ/idS2qGiTL+TDSL/JzYQVSqLOi8tmY4Z t2DtwkxBiSjSUJZ9lW8wsLzo2E45iAKDfTuB9UkLKNOiwGWdUT8s9wmP+790xmNC/ltH 8PuYjeXn9jKz+aqHEc4VwONjHz2QTtZR2TpWp2bYQ3Jj43SNMetZz4Ne3Q5ERYcMvjwq bJBw== 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 u1si7740208ejt.143.2019.10.07.14.54.42; Mon, 07 Oct 2019 14:55:05 -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 S1729337AbfJGVy3 (ORCPT + 99 others); Mon, 7 Oct 2019 17:54:29 -0400 Received: from mail105.syd.optusnet.com.au ([211.29.132.249]:47802 "EHLO mail105.syd.optusnet.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728422AbfJGVy3 (ORCPT ); Mon, 7 Oct 2019 17:54:29 -0400 Received: from dread.disaster.area (pa49-181-226-196.pa.nsw.optusnet.com.au [49.181.226.196]) by mail105.syd.optusnet.com.au (Postfix) with ESMTPS id DFACC362CC0; Tue, 8 Oct 2019 08:54:25 +1100 (AEDT) Received: from dave by dread.disaster.area with local (Exim 4.92.2) (envelope-from ) id 1iHaxU-0001jh-0r; Tue, 08 Oct 2019 08:54:24 +1100 Date: Tue, 8 Oct 2019 08:54:24 +1100 From: Dave Chinner To: Christoph Hellwig Cc: "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: <20191007215423.GB16973@dread.disaster.area> References: <20191006154608.24738-1-hch@lst.de> <20191006154608.24738-9-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191006154608.24738-9-hch@lst.de> User-Agent: Mutt/1.10.1 (2018-07-13) X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.2 cv=FNpr/6gs c=1 sm=1 tr=0 a=dRuLqZ1tmBNts2YiI0zFQg==:117 a=dRuLqZ1tmBNts2YiI0zFQg==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=XobE76Q3jBoA:10 a=20KFwNOVAAAA:8 a=yPCof4ZbAAAA:8 a=7-415B0cAAAA:8 a=oSRWnQKYtL-N8EWQpG8A:9 a=CjuIK1q_8ugA:10 a=biEYGPWJfzWAr4FL6Ov7:22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Oct 06, 2019 at 05:46:05PM +0200, Christoph Hellwig wrote: > In preparation for moving the XFS writeback code to fs/iomap.c, switch > it to use struct iomap instead of the XFS-specific struct xfs_bmbt_irec. > > Signed-off-by: Christoph Hellwig > Reviewed-by: Carlos Maiolino > Reviewed-by: Darrick J. Wong > --- > fs/xfs/libxfs/xfs_bmap.c | 14 +++++-- > fs/xfs/libxfs/xfs_bmap.h | 3 +- > fs/xfs/xfs_aops.c | 82 +++++++++++++++++++--------------------- > fs/xfs/xfs_aops.h | 2 +- > 4 files changed, 50 insertions(+), 51 deletions(-) > > diff --git a/fs/xfs/libxfs/xfs_bmap.c b/fs/xfs/libxfs/xfs_bmap.c > index 4edc25a2ba80..d0e7f9ef7b85 100644 > --- a/fs/xfs/libxfs/xfs_bmap.c > +++ b/fs/xfs/libxfs/xfs_bmap.c > @@ -34,6 +34,7 @@ > #include "xfs_ag_resv.h" > #include "xfs_refcount.h" > #include "xfs_icache.h" > +#include "xfs_iomap.h" > > > kmem_zone_t *xfs_bmap_free_item_zone; > @@ -4454,16 +4455,21 @@ int > xfs_bmapi_convert_delalloc( > struct xfs_inode *ip, > int whichfork, > - xfs_fileoff_t offset_fsb, > - struct xfs_bmbt_irec *imap, > + xfs_off_t offset, > + struct iomap *iomap, > unsigned int *seq) > { > struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); > struct xfs_mount *mp = ip->i_mount; > + xfs_fileoff_t offset_fsb = XFS_B_TO_FSBT(mp, offset); > struct xfs_bmalloca bma = { NULL }; > + u16 flags = 0; > struct xfs_trans *tp; > int error; > > + 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.... Cheers, Dave. -- Dave Chinner david@fromorbit.com