Message ID | 20230302115835.105364-5-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 v21csp4192335wrd; Thu, 2 Mar 2023 03:58:45 -0800 (PST) X-Google-Smtp-Source: AK7set91JAtbubvBBZ/nctDG5kL4rBn546bgxvY2yGq8qYBzz8o05vieq24t0bdbpPZZUPQ2Vx96 X-Received: by 2002:a17:90b:1a86:b0:237:8c64:a784 with SMTP id ng6-20020a17090b1a8600b002378c64a784mr11698605pjb.37.1677758325220; Thu, 02 Mar 2023 03:58:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677758325; cv=none; d=google.com; s=arc-20160816; b=lz5dKnWbaKeeDKFgwIVdWSyUKDfjIetM6qAifgEClifP7TzxR3HNWrd+WqN1EHlCin 41PRBoiHznpnom4w1nN1sGwL5CVmf7qYLTQCCvJuobSeemi/Bysp3ud+iCHrc+HyWmZJ atAh6WTQUgoy/qAIVswMeV6Z/Vh5v0lx/odujc8VHfQIvAS1F2HPP/wly+NIicIk9brq HaKNy56Xswof+RdR8TQmL0S2lZ5L89Oz9wPjJtadhQ0MEpczFzN97pWv6UvdUsFnD3rC dTCm5nGJTvNnPJIob3I7pEKcTqFt0Ghs/awcmcK6A3G/cF0e+EBMmAHKQ8B9IkROzFMv ASTA== 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=mBga8Nh2s/en48NKxOgUMy6LMXaVRAT4FO7ZiNK6SaY=; b=BdCOkIdI0l03lKZCJ1qNfD2DVduZVhkblHiE3YmxrF9mFO/enOith10f2ipnRxMQbe geP0c/8KHtjrWpwscv5InTyovDIR4vAzIrTa8U6Lt63huGRjdt2XRZhTmmd72al+OTOg oyFMBDy6Ok+j5jCmcc4nJhTCfG+MUyXcmqZYYeXh2PkRIXBTcwAR4a4B7SEMAtrL4c3n 716ZArVAahYyF1HJ9NzrBZYjQwKCoLgE7xksT2YTb9l/Qv5e5I3SM2kD1/jkT3ZvTrnE pBzx8VxOGt5Pt1v8kD3Py+MeiR4gV+6+s758mN8QKnjYfXhBzkUMmFDmNFzDPZOX2XWz 6Lfg== 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 v25-20020a637a19000000b004fb83390415si2668337pgc.77.2023.03.02.03.58.32; Thu, 02 Mar 2023 03:58:45 -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 S229513AbjCBLxp (ORCPT <rfc822;davidbtadokoro@gmail.com> + 99 others); Thu, 2 Mar 2023 06:53:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229726AbjCBLxm (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 2 Mar 2023 06:53:42 -0500 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 789CE17CCF for <linux-kernel@vger.kernel.org>; Thu, 2 Mar 2023 03:53:36 -0800 (PST) Received: from dggpemm500001.china.huawei.com (unknown [172.30.72.55]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4PS8974QG1zKmR7; Thu, 2 Mar 2023 19:32:43 +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 4/7] mm: memory: use folio_throttle_swaprate() in wp_page_copy() Date: Thu, 2 Mar 2023 19:58:32 +0800 Message-ID: <20230302115835.105364-5-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?1759257113285989651?= X-GMAIL-MSGID: =?utf-8?q?1759257113285989651?= |
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 b5c87682bb17..e068635d21cf 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -3096,7 +3096,7 @@ static vm_fault_t wp_page_copy(struct vm_fault *vmf) if (mem_cgroup_charge(new_folio, mm, GFP_KERNEL)) goto oom_free_new; - cgroup_throttle_swaprate(&new_folio->page, GFP_KERNEL); + folio_throttle_swaprate(new_folio, GFP_KERNEL); __folio_mark_uptodate(new_folio);