Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp441750rwn; Thu, 15 Sep 2022 00:44:06 -0700 (PDT) X-Google-Smtp-Source: AA6agR6Mqo8vp3ZBIuifCiWHSAiynpP3LoyGtBVZOQo0MPVvmQkSOKSrEcAMFqKcTGMOVg2B5EcS X-Received: by 2002:a17:906:da86:b0:740:7120:c6e6 with SMTP id xh6-20020a170906da8600b007407120c6e6mr28313427ejb.44.1663227846125; Thu, 15 Sep 2022 00:44:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663227846; cv=none; d=google.com; s=arc-20160816; b=k+fkJQ/Y9QQe2Pme6A9ohBqf2TzRxsGyWMz/lLUKIWdQl8+4kcTsM/IwgwJZYEKtmg vnIb4dH326hgVI+aC4uGKrmaO82iFk3GWDaKXhg5KFn6uBsh7SZ9W+rDRTeUVPzVm3Jb mCzBX0yL+O54y1s8/NbtL/X9pA3J3m3HCjb/U95ibIEZB4lwZOq37UCSL+2mCb7kYIgI 0NJs6X1DSUnbXa2g9vdBRjPGrPkkWhws2ye70774Z0MwivEyWYBjsuUTvLK11pF9xJCF zydDHzBw3vBgBDVsglMpZCdwBBazMJB5UnkXdorUHuHCaX64+cVGjbRcLsmYU4Hni0Mr CLfg== 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=ce5oxbNCfkPoGNRNpzYs1rUvcqZHHOUc5FToIXFyoE0=; b=cwm7MQ3SECaTlWH+tcTAnQxVGyH0XPvMZwYU2YxSo+iOXhW2hXZewkgaU2WAlaM+or 77KfVYJNkrkZAqYI4vd6VTMQL9pvvIxU9ML3orvKNjZx9ecVnG8TSd3VyYU2MD8v3sTJ IJD1wHOEQarKv886Ut/1X9UqmcrAk/Ttw+IKrBvEQIVlXeZmZbvFdlG/orX55blO13aE qf5wxaWzGP/dMVZRQM8s57QTESf4U0sEjPs9tNinp6mbYWuOE3Vk8pTIr51CZFkzhkWU 55eG8M7HW7KjncgukHD0NFYvRi+eKHuEYoydtzKRRLD/ZgwD/mSUt0KVCQ1DJfPe+NZ0 82fQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=XUZrwG7Y; 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 i22-20020a05640242d600b00450bda7e40esi18301539edc.19.2022.09.15.00.43.40; Thu, 15 Sep 2022 00:44:06 -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=casper.20170209 header.b=XUZrwG7Y; 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 S230043AbiIOHbW (ORCPT + 99 others); Thu, 15 Sep 2022 03:31:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230054AbiIOHay (ORCPT ); Thu, 15 Sep 2022 03:30:54 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83A2B92F7A; Thu, 15 Sep 2022 00:30:37 -0700 (PDT) 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=ce5oxbNCfkPoGNRNpzYs1rUvcqZHHOUc5FToIXFyoE0=; b=XUZrwG7YMmGzRjyOKpDZDDlmP1 4C7lb3eeg6UMvtXg3K268iHj4xzPfF9+V3v/ejtROgOqJpgEAof3YwHdGuA/be2awjk8bs6qxYqEd eGm9Mhy4Im90tgljsc1WPEWpJ6cvoMuhpuRlHcl1uTD/yVBPIx05Mi3dTlRck3YyDYeJif7IaFX/F kC7hHnf8YeVyfi4RL/h/CtQZOZTn8wUhj4ffyUJvDiqKunJQUHjj6AtLTdWifRQZee4/SGsf8zQGO Qkhoe29qDe7nmbQbqkOdDDaaTEDwLr0eCKYQo8sjDJ+7e4m9xPSlVcC6PzIhTQOjmSziq9oznzBDe yImqsgtQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1oYjKP-000tIb-U2; Thu, 15 Sep 2022 07:30:29 +0000 Date: Thu, 15 Sep 2022 08:30:29 +0100 From: Matthew Wilcox To: Ke Sun Cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, k2ci , linux-fsdevel@vger.kernel.org Subject: Re: [PATCH] mm/filemap: Make folio_put_wait_locked static Message-ID: References: <20220914015836.3193197-1-sunke@kylinos.cn> <44af62e3-8f51-bf0a-509e-4a5fdbf62b29@kylinos.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44af62e3-8f51-bf0a-509e-4a5fdbf62b29@kylinos.cn> 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 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, Sep 15, 2022 at 08:45:33AM +0800, Ke Sun wrote: > Ping. Don't be rude. I'm at a conference this week and on holiday next week. This is hardly an urgent patch. > On 2022/9/14 09:58, Ke Sun wrote: > > It's only used in mm/filemap.c, since commit > > ("mm/migrate.c: rework migration_entry_wait() to not take a pageref"). > > > > Make it static. > > > > Cc: Andrew Morton > > Cc: linux-mm@kvack.org > > Cc: linux-kernel@vger.kernel.org > > Reported-by: k2ci > > Signed-off-by: Ke Sun > > --- > > include/linux/pagemap.h | 1 - > > mm/filemap.c | 2 +- > > 2 files changed, 1 insertion(+), 2 deletions(-) > > > > diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h > > index 0178b2040ea3..82880993dd1a 100644 > > --- a/include/linux/pagemap.h > > +++ b/include/linux/pagemap.h > > @@ -1042,7 +1042,6 @@ static inline int > > wait_on_page_locked_killable(struct page *page) > > return folio_wait_locked_killable(page_folio(page)); > > } > > -int folio_put_wait_locked(struct folio *folio, int state); > > void wait_on_page_writeback(struct page *page); > > void folio_wait_writeback(struct folio *folio); > > int folio_wait_writeback_killable(struct folio *folio); > > diff --git a/mm/filemap.c b/mm/filemap.c > > index 15800334147b..ade9b7bfe7fc 100644 > > --- a/mm/filemap.c > > +++ b/mm/filemap.c > > @@ -1467,7 +1467,7 @@ EXPORT_SYMBOL(folio_wait_bit_killable); > > * > > * Return: 0 if the folio was unlocked or -EINTR if interrupted by a > > signal. > > */ > > -int folio_put_wait_locked(struct folio *folio, int state) > > +static int folio_put_wait_locked(struct folio *folio, int state) > > { > > return folio_wait_bit_common(folio, PG_locked, state, DROP); > > }