Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2106976rwd; Fri, 26 May 2023 01:37:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ471GyhTRsrxjSGarp7y5qgJZqpmMxLOwgqp+sFDbc5xh4N6TZ4TcjIng0WiRWvfGe38ac6 X-Received: by 2002:a17:90a:6841:b0:255:6ea1:9b63 with SMTP id e1-20020a17090a684100b002556ea19b63mr1650696pjm.43.1685090275431; Fri, 26 May 2023 01:37:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685090275; cv=none; d=google.com; s=arc-20160816; b=jdkw+40axRv7DxOx0/0J0dm4wGvDlkRdKYD+qcjblgdWLbK8nTPwyLuqWantaBmjwO s8i49bEp9t/dA6LNO8J1WbT7lxtcrVQWjj8K2gek97zTjebeBrdRE/MtHTd3/EvBXohv o+pqS2n2qXNvDgRHDlxZ4kE1R/GvoCuLLbvLznYpCKoppj0PJY93fNM506ugzqVOzwxL eNPbQTDeABDZUUfZmmkdWLAMbp7KOtiK2dnEtNxyfRfYZ6b4/RppfHSp+NAQfb4G99sA lVUv1P4WaTCcsvxZE4GZ8u0qewH6ke4OqooneZ7wDos3rPEkLQZOMu/c5+og7AdY3srd Lk8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=/kSO5Pkxt0E1wD1vZlEErFGpQ+uRM9cO+R3QIlyHQFY=; b=UI6j+DE2WFiVvsxwl927rK69rSiJl++jgaX8bty+Twiah6uoxHCkNKCEf1J6OReyOE 1/2asE6mTkLiystpHdPzr3xLIOo2Y5aDUMYouStilmv1o1md+mdiUcfO5kw9vnWAQpJy t+iOBlUwUGhNgUHwjva4PCNuZqoF+Z4lRfrh6aE3pRUUJIw2T6wTMqlE6I4Art5LV6qo LSD3ffydw04ZJpQWr+y/FOZabOa7s4DjS6ZC2WMLlLTfsbt062RbdkD0jII0XWEyH35K AEgh5C3N8AcnuP8i5oUTmgckH3G6fRjhctuWgP6g+s/7fVUTBDVW3vIk5GMCjBqcIfn6 0KTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=crkjvMq2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g66-20020a636b45000000b0053b8f80c65esi2508961pgc.730.2023.05.26.01.37.43; Fri, 26 May 2023 01:37:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=crkjvMq2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242688AbjEZIUp (ORCPT + 99 others); Fri, 26 May 2023 04:20:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242672AbjEZIUe (ORCPT ); Fri, 26 May 2023 04:20:34 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7ED131BF; Fri, 26 May 2023 01:20:28 -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=/kSO5Pkxt0E1wD1vZlEErFGpQ+uRM9cO+R3QIlyHQFY=; b=crkjvMq2tLgxbnjWR9kR7dwfpE GtXCYDoFhrWEDM+sHwPIbkB2KTnY2DDbHu0ZpcqcJ0kUqsGYKZh77RZNRVgZg2LpB8YesgJ4mwpZN tNMNGy4/OD6aJkZMnzH0hDuaJyl2np80bw2T6pW7o8ZNt72BxXxZfozkmUYWvOp0pRQ9ezxAKuBm+ 8EzfBCiqXA02MMDeTrRhrW0matlCtUjSs4BRv3DBvFifVMFpgI/2GSrH99OgnykuF2kSdKPMKrvk1 +GMR7XGaugmsaLQJgwcRAunM1XZ1kQs3YNCQpBbCL6Ut03QRJcCA8qMpeQ6PKAqAtPK1XFLI3yCdg oITZ/JQA==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1q2SgM-001aIt-1k; Fri, 26 May 2023 08:20:18 +0000 Date: Fri, 26 May 2023 01:20:18 -0700 From: Christoph Hellwig To: David Howells Cc: Christoph Hellwig , David Hildenbrand , Jens Axboe , Al Viro , Matthew Wilcox , Jan Kara , Jeff Layton , 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, Andrew Morton Subject: Re: [RFC PATCH v2 2/3] mm: Provide a function to get an additional pin on a page Message-ID: References: <20230525223953.225496-1-dhowells@redhat.com> <20230525223953.225496-3-dhowells@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230525223953.225496-3-dhowells@redhat.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 25, 2023 at 11:39:52PM +0100, David Howells wrote: > +/** > + * page_get_additional_pin - Try to get an additional pin on a pinned page > + * @page: The page to be pinned > + * > + * Get an additional pin on a page we already have a pin on. Makes no change > + * if the page is the zero_page. > + */ > +void page_get_additional_pin(struct page *page) page_get_additional_pin seems like an odd name, mixing the get and pin terminologies. What about repin_page? Or move to a folio interface from the start can call it folio_repin?