Message ID | 20230302115835.105364-6-wangkefeng.wang@huawei.com |
---|---|
State | New |
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 v21csp4203574wrd; Thu, 2 Mar 2023 04:20:50 -0800 (PST) X-Google-Smtp-Source: AK7set+Evkn3upkPtm7aTGTFXGc0vW26EWAPQH4oZPSKbcqdisT3ou4Lg4RB0haCpLVj3MczKg69 X-Received: by 2002:a17:906:36d5:b0:8f0:143d:ee28 with SMTP id b21-20020a17090636d500b008f0143dee28mr10950233ejc.16.1677759650543; Thu, 02 Mar 2023 04:20:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677759650; cv=none; d=google.com; s=arc-20160816; b=bW87DWrBbYSy3dJ/yRq5+iMvTmRlDTcej7ES319nTzyfx5MUpqIgKWsfKikVjXFaa5 kCd44e35f8oIOH62Vh0rfjdwwGhVY7PFFb2RMuHapZSQeW1dArzjRDnngWPuo+lRHx9A UXEWavrkLuOyNQv/aPjvrze05xxEqObbb7KOnNetjl6Id7YTLphZ0DZUlJJG0v3HdHhz mhMibMjFqj7KJS361IkAEDViN8ImWqGGxdUM6IAvpLoiRRd40gEN9Q/x50HH5v1VBJyn 4MJfDahnaoLhFzrXrxIcJS8+cTXJsWjzo+gtJE3tdMyXVAWpP7Vscginb+9pwowh3wZK YOaw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=C9B8tPfbJgxpy1FGc2CFBjsvTKU83yOYpL9R3XfEe7M=; b=T2eHng5QvmL4YGJz6gLkGbSrFp/LEyXl+wKn3fRnYBWXPn/0oEbl2DACgXhLjg5zF0 affO4UoOa0qi7JDkVtnVUU6jgdTyWg/BZOQJpPJpcVvI4sLYfH+A2BGxYfNE8mmPOk4g xrrnOKC3ktVEpVW01dc6UJGVKdvlk9RjaVNNBgHvaIc8MW5L0SqxkgZKPAu5L5c8WALO 1U21/Mct39h08nQgWHRwDkeFg6c6TZZU6p7s9HU3MJp2uwX5GWtSwhK3bmffIm5/eAIo 6zs6C2pov+jjFdxnGPt6ie+iXagbv8pW8keGEyrcwuo1wRbQAbul0vx8f1Ztr+zov+L4 uDaA== 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 q11-20020a1709066b0b00b008d667252e7esi4630697ejr.11.2023.03.02.04.20.27; Thu, 02 Mar 2023 04:20:50 -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 S229745AbjCBMAs (ORCPT <rfc822;davidbtadokoro@gmail.com> + 99 others); Thu, 2 Mar 2023 07:00:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbjCBMAr (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 2 Mar 2023 07:00:47 -0500 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16FC9166FD for <linux-kernel@vger.kernel.org>; Thu, 2 Mar 2023 04:00:46 -0800 (PST) Received: from dggpemm500001.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4PS8G7442ZzqVFL; Thu, 2 Mar 2023 19:37:03 +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:43 +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 5/7] mm: memory: use folio_throttle_swaprate() in do_anonymous_page() Date: Thu, 2 Mar 2023 19:58:33 +0800 Message-ID: <20230302115835.105364-6-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20230302115835.105364-1-wangkefeng.wang@huawei.com> References: <20230302115835.105364-1-wangkefeng.wang@huawei.com> 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?1759258503393164031?= X-GMAIL-MSGID: =?utf-8?q?1759258503393164031?= |
Series |
mm: remove cgroup_throttle_swaprate() completely
|
|
Commit Message
Kefeng Wang
March 2, 2023, 11:58 a.m. UTC
Directly use folio_throttle_swaprate() instead of
cgroup_throttle_swaprate().
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
---
mm/memory.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/memory.c b/mm/memory.c index e068635d21cf..841737d5690d 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -4065,7 +4065,7 @@ static vm_fault_t do_anonymous_page(struct vm_fault *vmf) if (mem_cgroup_charge(folio, vma->vm_mm, GFP_KERNEL)) goto oom_free_page; - cgroup_throttle_swaprate(&folio->page, GFP_KERNEL); + folio_throttle_swaprate(folio, GFP_KERNEL); /* * The memory barrier inside __folio_mark_uptodate makes sure that