Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp6893862ybp; Wed, 16 Oct 2019 00:09:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqyl8yC+Hg4KRbtKclQUUlTrlaei36N/08GJAK2pTUXECb9KsjtffOj8ys1BKJ3yIlfXDJMf X-Received: by 2002:a17:906:950e:: with SMTP id u14mr38432413ejx.145.1571209748058; Wed, 16 Oct 2019 00:09:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571209748; cv=none; d=google.com; s=arc-20160816; b=d8RB/uCEixwbi3hWJPE6KbcV0ad3TdvJ6YxzwxgBQws3tv9MxWQkM1uBwS7+UD4Plz jfGVwhtiZ3i0jls3UW790mqrnL3waeaMempD0TgvrGAJf1nt+prk4lL4yCAYnXxfCfcw c3pVj3iqiv/HcNzSkvTjuxfUn5bSrh45UmyYAxttLV6WdNbT7eDmrBMKq+/1qoDBE671 MLm8Ipf2Ly8AYmmUY7em3YjyfHWTw+dNIq+rbl1MXQKj+MFIJQsCzefVb47lRbcb+npV rTRsZZnTP7CPp9hqVR4uzViQM0CL4vAxwEtQkR2yJelp2EtuXXDOGgBfapugIM3GGbPS T0Mg== 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=ih7KxfAi9f5ww0hs7GXCELIaunzXYTyy0Vzs9YqR2ao=; b=HJ3TKeostItzLWRmXRa8ANUeUqJ0p0EkDJzuZjTVIVBapuK6MkD+B8vyH+E/jtZdYg 5afCid8fgEEk9YGDnVMhfXTN/GtSjT97HzG+zUCmrPhCi26BCjonronAk0UXZoGxJS6z wjNSN4k7DwTaA78cxIku9In69YdIoWuk3sY7yGjfRn4BVOO7ww9/jln2GuoqHTk8Kgyv s0bRpRly7MNX+x4d+EUzMvpttsySo0fPd4DNKSkfB2Hin+BV9ZbHoA21FFxnGDzD1uPG s4M+sw2m6JpxW9LSvGE/fLOC8Q71aohXv1azrX1mNmmk0yPvGJRwZwGL1Eok9zy4X0fG Qqww== 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 g8si16901413edb.335.2019.10.16.00.08.44; Wed, 16 Oct 2019 00:09:08 -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 S1728890AbfJOVUZ (ORCPT + 99 others); Tue, 15 Oct 2019 17:20:25 -0400 Received: from mail105.syd.optusnet.com.au ([211.29.132.249]:50698 "EHLO mail105.syd.optusnet.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726515AbfJOVUZ (ORCPT ); Tue, 15 Oct 2019 17:20:25 -0400 Received: from dread.disaster.area (pa49-181-198-88.pa.nsw.optusnet.com.au [49.181.198.88]) by mail105.syd.optusnet.com.au (Postfix) with ESMTPS id 49BCF362940; Wed, 16 Oct 2019 08:20:22 +1100 (AEDT) Received: from dave by dread.disaster.area with local (Exim 4.92.2) (envelope-from ) id 1iKUEu-0000bN-Oj; Wed, 16 Oct 2019 08:20:20 +1100 Date: Wed, 16 Oct 2019 08:20:20 +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 Subject: Re: [PATCH 01/12] xfs: initialize iomap->flags in xfs_bmbt_to_iomap Message-ID: <20191015212020.GU16973@dread.disaster.area> References: <20191015154345.13052-1-hch@lst.de> <20191015154345.13052-2-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191015154345.13052-2-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=ocld+OpnWJCUTqzFQA3oTA==:117 a=ocld+OpnWJCUTqzFQA3oTA==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=XobE76Q3jBoA:10 a=20KFwNOVAAAA:8 a=7-415B0cAAAA:8 a=lhxiFK1EMG2CG1D2i8wA: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 Tue, Oct 15, 2019 at 05:43:34PM +0200, Christoph Hellwig wrote: > Currently we don't overwrite the flags field in the iomap in > xfs_bmbt_to_iomap. This works fine with 0-initialized iomaps on stack, > but is harmful once we want to be able to reuse an iomap in the > writeback code. Replace the shared paramter with a set of initial > flags an thus ensures the flags field is always reinitialized. > > Signed-off-by: Christoph Hellwig Looks fine. Reviewed-by: Dave Chinner -- Dave Chinner david@fromorbit.com