Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp10659123rwl; Thu, 12 Jan 2023 00:26:43 -0800 (PST) X-Google-Smtp-Source: AMrXdXuTALs758PcVak9piOJt0ym7e/OQHZsAMvcc3JLnEBZzMCpJntreGPpMsf6AumZCN3VYrrN X-Received: by 2002:a05:6402:1c8d:b0:498:2213:d201 with SMTP id cy13-20020a0564021c8d00b004982213d201mr15706016edb.15.1673512003483; Thu, 12 Jan 2023 00:26:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673512003; cv=none; d=google.com; s=arc-20160816; b=UYUepb4bM8m7OfEXvG14Nx6Wjm/YSdT4ChgjFbpl7UftGlPQ6ZczDIvdqaZKykHd2v hnFPdn5QlS/FK5zyTJO39oM6l23hGwymm+QBxI5xRLJikpEBNHr0y9WGNVNNhq6X7CB2 XDTGO2PCk30/fqTOYfdTOtDEILeB1HdMGdJefWXWI8u5rXPTka+P27GDERGRoeq90ffz 7VT/IEpshRC1A2MeVdTLXT5xo2GO3mgGj0ytk33FTWJPnmLeIHdht6+tDPQPaas90Tt2 PZ95DLjuzr4Sm8dk4SC8UwKpiMHJX8d7hfd3s+8rFG5WpjvowKQiVHGr5XoRNDb1ZrSY jiwg== 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=IXcS9kvl9ie6Ugd8D255XdRV02WhPrOwMi76FUvV5Pc=; b=KVjiMEibRHEs1y5e1B/f/3KvE2sjVUhb4K8LTqeXUEZXk3BQuwFz4Fu1XdBhLx/SrR PFBPyUoMdYxGpVeamHdb6oMCvMYfuXHmlfBi5tklEZ6BWlC6W4RzVQdrolAWmQ8Jsu+r sB79sF3QLCV18gzbVaib74GpHqjA+qApAAX5jFoRBWzsbgYEZ1UB/F4Xcz+HbRgsFInY K+a4mf+ZIal52DJMxWTWhwNewvsbHRB4AV+lVuJiiCC70/1Yjo3dEt1QxubSTAft5BfP 0bnXHQlG3LWmmhCZxORgJLnKAnr2EHpwa2b9ZBSAeVbvlwGG+qmJDeeRyP6CfoV/Qkmt z12g== 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 t23-20020a056402241700b004993bc3d7bdsi12809870eda.84.2023.01.12.00.26.31; Thu, 12 Jan 2023 00:26:43 -0800 (PST) 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 S236454AbjALISE (ORCPT + 50 others); Thu, 12 Jan 2023 03:18:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239528AbjALIRx (ORCPT ); Thu, 12 Jan 2023 03:17:53 -0500 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BE9A392DD for ; Thu, 12 Jan 2023 00:17:38 -0800 (PST) Received: from dggpemm500001.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4Nsy711HjGzJrR7; Thu, 12 Jan 2023 16:16:13 +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.2375.34; Thu, 12 Jan 2023 16:17:31 +0800 From: Kefeng Wang To: , , CC: , Kefeng Wang Subject: [PATCH -next 0/7] mm: remove cgroup_throttle_swaprate() completely Date: Thu, 12 Jan 2023 16:29:59 +0800 Message-ID: <20230112083006.163393-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: dggems706-chm.china.huawei.com (10.3.19.183) To dggpemm500001.china.huawei.com (7.185.36.107) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS 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 Convert all the caller functions of cgroup_throttle_swaprate() to use folios, and use folio_throttle_swaprate(), which allows us to remove cgroup_throttle_swaprate() completely. Kefeng Wang (7): mm: huge_memory: make __do_huge_pmd_anonymous_page() to take a folio mm: memory: convert do_anonymous_page() to use a folio mm: memory: convert do_cow_fault to use folios mm: memory: convert page_copy_prealloc() to use a folio mm: memory: convert wp_page_copy() to use folios mm: memory: use folio_throttle_swaprate() in do_swap_page() mm: swap: remove unneeded cgroup_throttle_swaprate() include/linux/swap.h | 12 ++--- mm/huge_memory.c | 23 +++++----- mm/memory.c | 104 +++++++++++++++++++++++-------------------- mm/swapfile.c | 4 +- 4 files changed, 74 insertions(+), 69 deletions(-) -- 2.35.3