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 338EEC54EAA for ; Tue, 24 Jan 2023 14:53:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235094AbjAXOxO (ORCPT ); Tue, 24 Jan 2023 09:53:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235044AbjAXOxN (ORCPT ); Tue, 24 Jan 2023 09:53:13 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2BFB52126; Tue, 24 Jan 2023 06:53:03 -0800 (PST) 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=HlxO/ih5kKpQ090HZsMiu8xqao4TSbrCxWBxIkEv8rw=; b=XdNW0Fhs0ElZ3hlOb19ZbXNqNq m1D95Gyk1XM3hLiOSk6l3Oxh6IKVac757NWWnzo46edcGjy3nbnydIesEjVhK6FihmUBb73PzDTvv Q9gKr+rLPkbB6vJXegnCUF9bYNocKqHa6/BvKC71DBAzhqeaZpZcc8Yvziy+XTGlCm9rLY29FWIZM Lg/WJquY9I2k4P7nJ1ggpjgr2Gd1Hnfu0CpqWXHKsv/KShHMLtkr7nug5HMNJzM52leN7ASOo5efP mv0LrmtHILL4AAzcgM0q7LUbqafujXs00MvH9NSQRT8Zi9iK0EQ8rz2Fd16/VQkP7tHb/C2wkFgNu 7Ill09lQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1pKKfL-004QIg-QR; Tue, 24 Jan 2023 14:52:51 +0000 Date: Tue, 24 Jan 2023 06:52:51 -0800 From: Christoph Hellwig To: David Howells Cc: David Hildenbrand , Al Viro , Christoph Hellwig , Matthew Wilcox , Jens Axboe , Jan Kara , Jeff Layton , Logan Gunthorpe , linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Christoph Hellwig , linux-mm@kvack.org Subject: Re: [PATCH v8 03/10] mm: Provide a helper to drop a pin/ref on a page Message-ID: References: <20230123173007.325544-1-dhowells@redhat.com> <20230123173007.325544-4-dhowells@redhat.com> <874546.1674571293@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <874546.1674571293@warthog.procyon.org.uk> 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-kernel@vger.kernel.org On Tue, Jan 24, 2023 at 02:41:33PM +0000, David Howells wrote: > Yes. Christoph insisted that the bio conversion patch be split up. That > means there's an interval where you can get FOLL_GET from that. The only place where we have both is in the block layer. It never gets set by bio_set_cleanup_mode. Instead we can just keep using put_page dirctly for the BIO_PAGE_REFFED case in the callers of bio_release_page and in bio_release_pages itself, and then do away with bio_to_gup_flags and bio_release_page entirely.