Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3853161ybi; Mon, 29 Jul 2019 13:58:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqwmYLhiaHykJ0ZpGXBL3VPp3dTTSMddxuhKSEs4Z0s6ly/HdmFfZUouwXcsqeSPiSJzFwxR X-Received: by 2002:a62:1616:: with SMTP id 22mr39178585pfw.120.1564433916420; Mon, 29 Jul 2019 13:58:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564433916; cv=none; d=google.com; s=arc-20160816; b=c58esqBwk1Ej5bxWlNj/v+QVrjAWUQvczyDZdmpxV7WuxyoEI/HnmogN2mLLPsDmPM eokx+UTIbhuSGcSLa9faxhOOh3MHrDzgYZtUYc+c5cDqo/84aEz3BCrFs2WZmICJI1be T12cPXvfXfephIZU15ZdGi1l/2MCiS1IWLyaH+/yUjAt4jSKd3U6Qn1Psw/bCZkynZov 0W1wK9/SiynFi0PdPP5uRvQjeYNojNgL5ZxIA0X6aveCKHAiZQD1xt/z8HQ+q9sUV6XZ Q/UOGzz+6IXw4XFtwAL4t+vaIodcHxgJt9SCkYzrKi/6vpho+1RcASE4D0GFCcZLAom5 Sd0A== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=Ej87fJCgfgG5YmUqt7FsxEwGENhvNmHWA4s4Vq1TU6w=; b=mfYj2dL5v3SI7rUW6w/TT7u6Avyy1g4pJT0inkXUCbgbqmwzE7MH9g1cVF500jLDX4 QXM+OraX5RCp8oGaQdD67wZ6zYWA6FcgZD7NCEbzCsdrmuexIObwOTYSzXwQJnjDVz4S idpdzwsM0ur1mIx+hJvXWxQfg71LUwAPZ78gDYJj4Ec/DYFt9WvVLrJ+p5rud3tLYrbc vVzoLsQIIMDuyMhzAcBbHSQmAR4oqLZkYKlM+f1swJcFyyhi31hnPwvXdpCRdfO/CBiX epGj01bXd2OUbd58kZ52zf2QfFYfU7whXDAJ1q0ekuWcXdVyTRmH5gF2jQFYEv9/l/p+ EQfQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a64si29264189pfb.60.2019.07.29.13.58.21; Mon, 29 Jul 2019 13:58:36 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729625AbfG2U5j (ORCPT + 99 others); Mon, 29 Jul 2019 16:57:39 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37004 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729405AbfG2U5i (ORCPT ); Mon, 29 Jul 2019 16:57:38 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 40047C060204; Mon, 29 Jul 2019 20:57:37 +0000 (UTC) Received: from redhat.com (ovpn-112-31.rdu2.redhat.com [10.10.112.31]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1D8C65C219; Mon, 29 Jul 2019 20:57:24 +0000 (UTC) Date: Mon, 29 Jul 2019 16:57:21 -0400 From: Jerome Glisse To: Christoph Hellwig Cc: john.hubbard@gmail.com, Andrew Morton , Alexander Viro , Anna Schumaker , "David S . Miller" , Dominique Martinet , Eric Van Hensbergen , Jason Gunthorpe , Jason Wang , Jens Axboe , Latchesar Ionkov , "Michael S . Tsirkin" , Miklos Szeredi , Trond Myklebust , Christoph Hellwig , Matthew Wilcox , linux-mm@kvack.org, LKML , ceph-devel@vger.kernel.org, kvm@vger.kernel.org, linux-block@vger.kernel.org, linux-cifs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-nfs@vger.kernel.org, linux-rdma@vger.kernel.org, netdev@vger.kernel.org, samba-technical@lists.samba.org, v9fs-developer@lists.sourceforge.net, virtualization@lists.linux-foundation.org, John Hubbard , Minwoo Im Subject: Re: [PATCH 03/12] block: bio_release_pages: use flags arg instead of bool Message-ID: <20190729205721.GB3760@redhat.com> References: <20190724042518.14363-1-jhubbard@nvidia.com> <20190724042518.14363-4-jhubbard@nvidia.com> <20190724053053.GA18330@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190724053053.GA18330@infradead.org> User-Agent: Mutt/1.12.0 (2019-05-25) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Mon, 29 Jul 2019 20:57:38 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 23, 2019 at 10:30:53PM -0700, Christoph Hellwig wrote: > On Tue, Jul 23, 2019 at 09:25:09PM -0700, john.hubbard@gmail.com wrote: > > From: John Hubbard > > > > In commit d241a95f3514 ("block: optionally mark pages dirty in > > bio_release_pages"), new "bool mark_dirty" argument was added to > > bio_release_pages. > > > > In upcoming work, another bool argument (to indicate that the pages came > > from get_user_pages) is going to be added. That's one bool too many, > > because it's not desirable have calls of the form: > > All pages releases by bio_release_pages should come from > get_get_user_pages, so I don't really see the point here. No they do not all comes from GUP for see various callers of bio_check_pages_dirty() for instance iomap_dio_zero() I have carefully tracked down all this and i did not do anyconvertion just for the fun of it :) Cheers, J?r?me