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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id A7205C433EF for ; Wed, 1 Jun 2022 12:23:36 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3E1928D0013; Wed, 1 Jun 2022 08:23:36 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 390468D000E; Wed, 1 Jun 2022 08:23:36 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 18F5F8D0013; Wed, 1 Jun 2022 08:23:36 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 04A348D000E for ; Wed, 1 Jun 2022 08:23:36 -0400 (EDT) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay12.hostedemail.com (Postfix) with ESMTP id 99E211207B4 for ; Wed, 1 Jun 2022 12:23:35 +0000 (UTC) X-FDA: 79529582790.02.347947C Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf03.hostedemail.com (Postfix) with ESMTP id 2598020049 for ; Wed, 1 Jun 2022 12:23:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; 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=tpLCATDvSNut2GdsBDoIlXtFcEwNrKgJ1fPMzQVxjrg=; b=mKHwOoi6yQqqjJUWC+Yud/6ViQ vBWg4g6vWHeEgx0fHGNTTlkxiZXD5Z5pHf1M/1So22A9yIc7hQ+nFFLRLXGSkBJIK/W2ugLZf9Dnn YydM+nALadpBgIHNol9t5E/n+0vTAxAiY9WMpl3TiwObONaCECWSbmw9vmXFn1rC0RmtisRHYtbts qRoOOEyuMvrDFibKNGy8dP9G81ZT/rMNIQ6vA5CJThoaWb/ZFrzuSSJgUhwESgpMhTJXQpbUsNS07 RkRdzSMcJ5heWJerMK9G7kstBtVjRLNvYDvzUZw6tXVW1gxFJqUFBNM5Av6iJGjuH/28mWOi+c4RE 1x245J+Q==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nwNNp-006GuX-23; Wed, 01 Jun 2022 12:23:29 +0000 Date: Wed, 1 Jun 2022 13:23:29 +0100 From: Matthew Wilcox To: Miaohe Lin Cc: linux-mm@kvack.org Subject: Re: [PATCH 2/6] mm/page_alloc: Rename free_the_page() to free_frozen_pages() Message-ID: References: <20220531150611.1303156-1-willy@infradead.org> <20220531150611.1303156-3-willy@infradead.org> <6777286e-747d-93e7-f361-c31f8e481bb5@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6777286e-747d-93e7-f361-c31f8e481bb5@huawei.com> X-Stat-Signature: fhgxshyumif6u6epe8wnpiey963dizgi X-Rspam-User: Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=mKHwOoi6; spf=none (imf03.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org; dmarc=none X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 2598020049 X-HE-Tag: 1654086200-299255 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Wed, Jun 01, 2022 at 02:58:23PM +0800, Miaohe Lin wrote: > On 2022/5/31 23:06, Matthew Wilcox (Oracle) wrote: > > In preparation for making this function available outside page_alloc, > > rename it to free_frozen_pages(), which fits better with the other > > memory allocation/free functions. > > > > Signed-off-by: Matthew Wilcox (Oracle) > > Reviewed-by: Miaohe Lin > > Thanks! > > BTW: I thought it means we can free the temporarily frozen page (via page_ref_freeze) now > when I saw the name "free_frozen_pages". ;) Well, you can. Before you'd have to do it by calling free_unref_page(), but now you can do it by calling free_frozen_pages().