Message ID | 20230112083006.163393-1-wangkefeng.wang@huawei.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp3761892wrt; Thu, 12 Jan 2023 00:25:41 -0800 (PST) X-Google-Smtp-Source: AMrXdXtxxN/aHDVBh0sjBoE8B7Glw4wewvJaYyPiG5tOH4LnM2bYLl1WIo0WtdMvxPFzq/W3VUKa X-Received: by 2002:a05:6402:c43:b0:499:ccfc:dd0b with SMTP id cs3-20020a0564020c4300b00499ccfcdd0bmr7784954edb.17.1673511941448; Thu, 12 Jan 2023 00:25:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673511941; cv=none; d=google.com; s=arc-20160816; b=pW2kcI66t96kUIx6Bk1huuxR9LhEkxDQOIbzENASyXam5DBW1bACHVKnZs72WK02ML Zt542XH9dGHbRvCqilxuRpwAh3L5Pne4B2ehL6aVUMzdq30217eI1amuxFSgwjRmkhko M/cODTWAjZNNKaGTYE3fgDkRYc5MKdf4QXtnE89VAjwD49WYGo6W/AAzQazkLr0mnMrB ZyjumGLCsEKUm532A7WxqNxhbrWU/kd5soPEWsQ19Ghlc0MyDVE/LTEMUMcbfYo3I67T d8hCrBCSMtUPpL660S//+njEERRxbLJOgp6/QHS5W2ZL75rbaX8rCEREDUTdxJc9/alL e/qg== 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 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.25.18; Thu, 12 Jan 2023 00:25:41 -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 <rfc822;zhuangel570@gmail.com> + 99 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <linux-kernel@vger.kernel.org>; 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 <wangkefeng.wang@huawei.com> To: <akpm@linux-foundation.org>, <willy@infradead.org>, <linux-mm@kvack.org> CC: <linux-kernel@vger.kernel.org>, Kefeng Wang <wangkefeng.wang@huawei.com> 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754804457396737301?= X-GMAIL-MSGID: =?utf-8?q?1754804457396737301?= |
Series |
mm: remove cgroup_throttle_swaprate() completely
|
|
Message
Kefeng Wang
Jan. 12, 2023, 8:29 a.m. UTC
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(-)