Message ID | 20230302115835.105364-1-wangkefeng.wang@huawei.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp4185857wrd; Thu, 2 Mar 2023 03:40:37 -0800 (PST) X-Google-Smtp-Source: AK7set+jh1dPwvaXCA2bdxwWiWm2aqtd6KKiRn1qV2vq2PHs1tqm++y9ehXJl+kJ+4dxWKEnQc89 X-Received: by 2002:a17:907:628c:b0:8b1:4051:6d2c with SMTP id nd12-20020a170907628c00b008b140516d2cmr12289678ejc.19.1677757237131; Thu, 02 Mar 2023 03:40:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677757237; cv=none; d=google.com; s=arc-20160816; b=oVUxVBxe1O2rCyIHBlteQhzvyM5NegrwcqEkmgmCRiBPd18Ifl1bj+IqJUPTuPZiZv uswlgcccoNC0+HZ8BKUcDVnC9BegpU7139wKibBmhx/Db4jFnEIAMdqohVI8wvbuJYUt lP6NJsa6xEMeITcBbsQsrNeXVMv/EYLTcCxRlUmrQPV/Qz5EK/xSUksOdorZXxZWzYoL FiOI5olonACb+7MbGKrSg1DMAtGVR6aLJiM5kixODCZfdRrWrP2uZHTI2T3cYcaHj7qT nLiQ9yDb56SWU4Dg+nkzinZBRuYiDSseMH2sjlOzQaBXpPsbsg0D3W4FbcsFFkAFE0TL CzbQ== 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=P3FA0YczuCMJJvfOnhSVueG7Ki6SLE2AuVCcFHT5JFQ=; b=Cle42xLKmTx2xJEiJZgsntsiGB79J1AjjG9MEjiJd81vUCnR1IgaSzBIwUBVkqIgrb 24Vv086TrzSUpCkRrRhujQFQjQi/RzbzUZWhh4VxUexwhvsZHyZlfL0B/rambtXglP0N jwaNGVOe9gPmTEnY1Rc96Nrx93pdY/Vju5qf1H4w5XBVqyoglYzsUWhAZw3seuHhPXn6 hrn4GdcdMdExUZE9CYCy4wI12lKNO/OKVmF/6Pn+krtnod1wVajM2Bo6/DnvhXMWPM7d hAx24ZJL+FRnJ/4zHorxnq50mwZUsrF7sAthk8WMS3OC9LQyyE6IMb3OQ2ujAV/Kqw6Y u/qQ== 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 j12-20020a170906830c00b008b17e6556c3si15960021ejx.587.2023.03.02.03.40.14; Thu, 02 Mar 2023 03:40:37 -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 S229530AbjCBLjX (ORCPT <rfc822;davidbtadokoro@gmail.com> + 99 others); Thu, 2 Mar 2023 06:39:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229789AbjCBLjR (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 2 Mar 2023 06:39:17 -0500 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 405FB34307 for <linux-kernel@vger.kernel.org>; Thu, 2 Mar 2023 03:38:49 -0800 (PST) Received: from dggpemm500001.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4PS8CV0bpyzSkQp; Thu, 2 Mar 2023 19:34:46 +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.21; Thu, 2 Mar 2023 19:37:41 +0800 From: Kefeng Wang <wangkefeng.wang@huawei.com> To: <akpm@linux-foundation.org> CC: <linux-mm@kvack.org>, <linux-kernel@vger.kernel.org>, "Matthew Wilcox (Oracle)" <willy@infradead.org>, Kefeng Wang <wangkefeng.wang@huawei.com> Subject: [PATCH v2 0/7] mm: remove cgroup_throttle_swaprate() completely Date: Thu, 2 Mar 2023 19:58:28 +0800 Message-ID: <20230302115835.105364-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: dggems705-chm.china.huawei.com (10.3.19.182) 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?1759255972355588168?= X-GMAIL-MSGID: =?utf-8?q?1759255972355588168?= |
Series |
mm: remove cgroup_throttle_swaprate() completely
|
|
Message
Kefeng Wang
March 2, 2023, 11:58 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. v2: - address comments from Matthew Wilcox, eg, 1) folio conversion inside __do_huge_pmd_anonymous_page() function, 2) rename __cgroup_throttle_swaprate() to __folio_throttle_swaprate() 3) rename gfp_mask to gfp Kefeng Wang (7): mm: huge_memory: convert __do_huge_pmd_anonymous_page() to use a folio mm: memory: use folio_throttle_swaprate() in do_swap_page() mm: memory: use folio_throttle_swaprate() in page_copy_prealloc() mm: memory: use folio_throttle_swaprate() in wp_page_copy() mm: memory: use folio_throttle_swaprate() in do_anonymous_page() mm: memory: use folio_throttle_swaprate() in do_cow_fault() mm: swap: remove unneeded cgroup_throttle_swaprate() include/linux/swap.h | 12 ++++-------- mm/huge_memory.c | 21 +++++++++++---------- mm/memory.c | 10 +++++----- mm/swapfile.c | 6 +++--- 4 files changed, 23 insertions(+), 26 deletions(-)
Comments
On Thu, Mar 02, 2023 at 07:58:28PM +0800, Kefeng Wang wrote: > 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. For the series: Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>