From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3AFD7C7EE29 for ; Sat, 20 May 2023 03:57:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230156AbjETD5M (ORCPT ); Fri, 19 May 2023 23:57:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230148AbjETD5K (ORCPT ); Fri, 19 May 2023 23:57:10 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D43D81B0; Fri, 19 May 2023 20:57:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=mEJo2AvtRRBovcYEODKkZg/Om1DBMDjK4oNyeFteRYQ=; b=JabwUtm18vAo7f2bgHXyFZnkFF q5JhN8/xdLb/wI6GZwYTcOQB8abF4Kb0j/AvXGoh84sVTx64pNxcNof0P/Px5/BSHMGvpQSfIca68 1k/2bLDxuS2Otnmtw8EgQD0c9fkqjzTD5/vSLcC2d4pSBhExO5zjs9I7oVlc5NABX954qDvdMMH5Q BFdBBYsPSsif/58t79XnO0CP3PucPeFr2SXDKH7Tbm6hftKEOYcnAkpNCnfA3oZZGFAkLDDlHDTkB bnBm9Fmai18RFKosJO4ZIqA9/rL9sme62hpRkm7QDdFfV0kWHa6U/yOHXHZnzVfTOsD7JvPAktybM Ket+sh6Q==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1q0DiC-000bY9-2i; Sat, 20 May 2023 03:56:56 +0000 Date: Fri, 19 May 2023 20:56:56 -0700 From: Christoph Hellwig To: Kent Overstreet Cc: David Howells , Jens Axboe , Al Viro , Christoph Hellwig , Matthew Wilcox , Jan Kara , Jeff Layton , David Hildenbrand , Jason Gunthorpe , Logan Gunthorpe , Hillf Danton , Christian Brauner , Linus Torvalds , linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Christoph Hellwig , John Hubbard Subject: Re: [PATCH v20 29/32] block: Replace BIO_NO_PAGE_REF with BIO_PAGE_REFFED with inverted logic Message-ID: References: <20230519074047.1739879-1-dhowells@redhat.com> <20230519074047.1739879-30-dhowells@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org On Fri, May 19, 2023 at 09:26:07PM -0400, Kent Overstreet wrote: > On Fri, May 19, 2023 at 08:40:44AM +0100, David Howells wrote: > > From: Christoph Hellwig > > > > Replace BIO_NO_PAGE_REF with a BIO_PAGE_REFFED flag that has the inverted > > meaning is only set when a page reference has been acquired that needs to > > be released by bio_release_pages(). > > What was the motivation for this patch? So that is only is set when we need to release a page, instead telling code to not release it when it otherwise would, where otherwise would is implicit and undocumented and changes in this series.