Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp219954pxb; Mon, 11 Apr 2022 23:39:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZtv/fIZ7DyNTWew2ZY0Kxxv+uzB7wcgIygmylR9aHrIMaKIy3NDiUvuSXknRP6DH6np5C X-Received: by 2002:a17:903:281:b0:14c:f3b3:209b with SMTP id j1-20020a170903028100b0014cf3b3209bmr36114083plr.87.1649745542599; Mon, 11 Apr 2022 23:39:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649745542; cv=none; d=google.com; s=arc-20160816; b=cy7l/0jrtYxEYNCBLHhP4aVPI/YNa/epPdHMe0DgS8gSr842VweS2Vcmqrk9siSXje JzE3IOTnlssqEjHTPXWDNe7II0TzlCDVnD+H+dl428JNJJPoYBCbwINvbHr7H6GVU2Oy wPt3k3p/C8ktws1+2F2tjXjsGpaPUsf9hpWp4axsGIZAASco5//benrnL12rdeVlgHYF p5+STQVDfj9eNXWpr4+wBLNfwVOIEDA4UmnKfKvpQBrfWy/4dXH4phsI3HjZXBmCNiAV NmoE7BNwKmDLMbcrpA1UYhpC30275aOHVMFlEFQszSVg4GtpRMT6zrrOdMNMR6+Xr6UV OJ6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=kvViRnX4vGyDB/MpzazAqFEvB48RNluPCxcWQccGVnU=; b=JYnG53AVuSSueuvN0tPh9JkSxML2sv3LPnLHNVnMnDgeo95/4pF9Z8tVu8BeT4Kj4k DzyRVUg1LDQKMHYEjck0Jk77q0va1gUT8G8aDA7vnFg4V9EVxlXrbs6wPtWdPSYexxG8 38V4MoiPIk59mfLQO/waL97vwvcSPFGM+0r6XfQIOcvnsErFEDOluoD20QUJO61zMdvu cAo+KLX8mEii8zFn88O/1TAwOF5G6VlxYyp2yTvJE4vjrFLqJYS7NXt5+zH1MFS/iRIs P4Yaq7bc4ExjGTOElnk6pvVTNQYUCQVeCXq3nrsPKXbYFvczsmb3kpwSb2LqnuYQwGfL UAfg== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u10-20020a17090341ca00b00156983f1b99si4029813ple.267.2022.04.11.23.38.48; Mon, 11 Apr 2022 23:39:02 -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; 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244542AbiDKD26 (ORCPT + 99 others); Sun, 10 Apr 2022 23:28:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244539AbiDKD2z (ORCPT ); Sun, 10 Apr 2022 23:28:55 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6CFF2CE10 for ; Sun, 10 Apr 2022 20:26:40 -0700 (PDT) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.57]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4KcDgM3p7zzBsCY; Mon, 11 Apr 2022 11:22:23 +0800 (CST) Received: from [10.174.177.76] (10.174.177.76) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Mon, 11 Apr 2022 11:26:38 +0800 Subject: Re: [PATCH v2 3/9] mm/vmscan: introduce helper function reclaim_page_list() To: Matthew Wilcox CC: , , , , , References: <20220409093500.10329-1-linmiaohe@huawei.com> <20220409093500.10329-4-linmiaohe@huawei.com> <18ac3908-d162-f1ea-e91f-1da203272b74@huawei.com> From: Miaohe Lin Message-ID: Date: Mon, 11 Apr 2022 11:26:38 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.177.76] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,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 2022/4/11 11:17, Matthew Wilcox wrote: > On Mon, Apr 11, 2022 at 09:53:15AM +0800, Miaohe Lin wrote: >> On 2022/4/9 21:44, Matthew Wilcox wrote: >>> On Sat, Apr 09, 2022 at 05:34:54PM +0800, Miaohe Lin wrote: >>>> + nr_reclaimed = shrink_page_list(page_list, pgdat, &sc, &dummy_stat, false); >>>> + while (!list_empty(page_list)) { >>>> + folio = lru_to_folio(page_list); >>>> + list_del(&folio->lru); >>>> + putback_lru_page(&folio->page); >>> >>> folio_putback_lru() >> >> I thought folio_putback_lru is deliberately not to use because there is no caller of folio_putback_lru now. >> But it seems I was wrong. Will do it in next version. > > Looks like all of the uses of it that I mooted during the last merge > window ended up going away. > > https://lore.kernel.org/all/20220204195852.1751729-47-willy@infradead.org/ > was obsoleted by commit b109b87050df > > https://lore.kernel.org/all/20220204195852.1751729-48-willy@infradead.org/ > and > https://lore.kernel.org/all/20220204195852.1751729-50-willy@infradead.org/ > were also obsoleted by Hugh's mlock changes > > I also sent > https://lore.kernel.org/all/YjJJIrENYb1qFHzl@casper.infradead.org/ > > but never quite got it up to submittable quality. I see. This is really a pity. Many thanks for clarifying. :) > > . >