Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp3851457rwe; Mon, 17 Apr 2023 04:40:24 -0700 (PDT) X-Google-Smtp-Source: AKy350bEUFgDoVk9+ZzeF+876CfJ/u1MC4NEKla8ZTMI6UMDbWK+Ctso5L/dGotNWhydAuNhsC8V X-Received: by 2002:a05:6a21:6d94:b0:ef:2389:66c5 with SMTP id wl20-20020a056a216d9400b000ef238966c5mr9041565pzb.12.1681731624031; Mon, 17 Apr 2023 04:40:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681731624; cv=none; d=google.com; s=arc-20160816; b=LANEOjF8/q8qc0/JqMVgtIre+pDW9s6gcvlaXOFOibmxIKxOFaWoGK3Sa9Yb8GAwAD UKHSZyOyCuJL/VUbda7Y7K9POTu9eRaGLzkRE6CvCC7asnKZVa+QLKuajPF70AIbV2r0 WoZi9G8cWP5zAEK16INvGX57+JVyFQ5gPpa9Rn6HruzOU+bA9HQtbpF8puLnpS1rH7Lu zxY63zqBH9gA5p2QpLHwPSLFR7DvfwT1Ozgs1Nh8Sy5hcYgwylHkoKIHxc2TEUMyxxsd a929nsYGJYCiSip1gfKerUbly+TYpW0YoQ2pS6drMI9W5qIMFoBd2SqUixdtDo4awm8S Wwxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=W7nZ+tBex5q6sNcbWRdvrLSfF9YNokrdfM307G2SAQo=; b=w1zZ14J8jofswpY6Fdp+5dyNydF13XHUMfp7IAzpmDjIwSll9bbLwpgV9PYQPiQiIt tqrPzdbPxncijZJz2IpMWv8mh9R+ZP2dWFyO/WLxHr0gxYL7z/D3x40DmWGMjJVlLBVS 6XocR5SZsRlxZkvY8Lli6vFgvQJ1VOAf5MB2LsegLvBK/50AQzPP1A/NxZXhnqSG03av u6z3Bk4QgJ4aN31AUYxbYOduSmjU6ZNSKcUoCtLmirThcxF4kMCY82+AAHpqhqfH1oM1 VkFpoPLh+RzWSKMQZ1YS0anL2d/WTVDI5oKK/LD2vfMVuiAf+ko2xWtrRUKbEAT9igKY Nlyw== 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 w190-20020a6382c7000000b005132b086eddsi10226764pgd.279.2023.04.17.04.40.12; Mon, 17 Apr 2023 04:40:24 -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 S229781AbjDQLfB (ORCPT + 99 others); Mon, 17 Apr 2023 07:35:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230202AbjDQLdA (ORCPT ); Mon, 17 Apr 2023 07:33:00 -0400 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4183C93F2 for ; Mon, 17 Apr 2023 04:31:58 -0700 (PDT) Received: from dggpemm500001.china.huawei.com (unknown [7.185.36.107]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4Q0PrT2nG6z17SgW; Mon, 17 Apr 2023 19:26:17 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by dggpemm500001.china.huawei.com (7.185.36.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Mon, 17 Apr 2023 19:29:57 +0800 From: Kefeng Wang To: Andrew Morton , , "Matthew Wilcox (Oracle)" CC: SeongJae Park , Hugh Dickins , , Kefeng Wang Subject: [PATCH] mm: correct arg in reclaim_pages()/reclaim_clean_pages_from_list() Date: Mon, 17 Apr 2023 19:48:07 +0800 Message-ID: <20230417114807.186786-1-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggpemm500001.china.huawei.com (7.185.36.107) X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,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 Both of them change the arg from page_list to folio_list when convert them to use a folio, but not the declaration, let's correct it, also move the reclaim_pages() from swap.h to internal.h as it only used in mm. Signed-off-by: Kefeng Wang --- include/linux/swap.h | 1 - mm/internal.h | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/swap.h b/include/linux/swap.h index 7f7d5b9ddf7e..3c69cb653cb9 100644 --- a/include/linux/swap.h +++ b/include/linux/swap.h @@ -442,7 +442,6 @@ extern unsigned long shrink_all_memory(unsigned long nr_pages); extern int vm_swappiness; long remove_mapping(struct address_space *mapping, struct folio *folio); -extern unsigned long reclaim_pages(struct list_head *page_list); #ifdef CONFIG_NUMA extern int node_reclaim_mode; extern int sysctl_min_unmapped_ratio; diff --git a/mm/internal.h b/mm/internal.h index 286f97a5125c..f59093b8adb6 100644 --- a/mm/internal.h +++ b/mm/internal.h @@ -804,8 +804,9 @@ extern unsigned long __must_check vm_mmap_pgoff(struct file *, unsigned long, unsigned long, unsigned long); extern void set_pageblock_order(void); +unsigned long reclaim_pages(struct list_head *folio_list); unsigned int reclaim_clean_pages_from_list(struct zone *zone, - struct list_head *page_list); + struct list_head *folio_list); /* The ALLOC_WMARK bits are used as an index to zone->watermark */ #define ALLOC_WMARK_MIN WMARK_MIN #define ALLOC_WMARK_LOW WMARK_LOW -- 2.35.3