Message ID | 20230302115835.105364-5-wangkefeng.wang@huawei.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id ED46DC678D4 for <linux-mm@archiver.kernel.org>; Thu, 2 Mar 2023 11:37:52 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7F9D36B0075; Thu, 2 Mar 2023 06:37:50 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 6355B6B0073; Thu, 2 Mar 2023 06:37:50 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4ADDF6B0074; Thu, 2 Mar 2023 06:37:50 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 1D8FE6B0074 for <linux-mm@kvack.org>; Thu, 2 Mar 2023 06:37:50 -0500 (EST) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id B88DD4104A for <linux-mm@kvack.org>; Thu, 2 Mar 2023 11:37:49 +0000 (UTC) X-FDA: 80523758658.07.B7B0E48 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by imf20.hostedemail.com (Postfix) with ESMTP id EBE5B1C0009 for <linux-mm@kvack.org>; Thu, 2 Mar 2023 11:37:46 +0000 (UTC) Authentication-Results: imf20.hostedemail.com; dkim=none; spf=pass (imf20.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.189 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1677757068; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mBga8Nh2s/en48NKxOgUMy6LMXaVRAT4FO7ZiNK6SaY=; b=ZGc/BW9ot0OXTFwwbCt9pdKVuq7XM0xXlygPJS7KHcIrXh/GdiGY0Se3siS163r0g/L7g5 vCpXJ+cYbbUD2eql3JDCBiiG4E8tDA6F1ZDFpfYyPVUhlMlmIoKUSEotvbbMm33Ck0yC8G iaoj8UhugyHEP2z58Cw4HjXY7aiTJFs= ARC-Authentication-Results: i=1; imf20.hostedemail.com; dkim=none; spf=pass (imf20.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.189 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1677757068; a=rsa-sha256; cv=none; b=QxBc8zFWdJWikzSKdD1h3+rKdDbTqb2jecfh6VvatEs2cE+iA/sUJU9lDx760Wqhz2SIEH dA6+AAUsHzWxlQ+Ju275JfxOWgAqykRsa12IWMvf1WDeORKsvf48L5JzAp+BbVeNLpTaKD 4yAinRkxp1L7ZOH2VoG7Io0eo86U1xo= 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: 8bit Content-Type: text/plain 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-Stat-Signature: kwwhqrjey61on7e6nzcj371echzzgz19 X-Rspam-User: X-Rspamd-Queue-Id: EBE5B1C0009 X-Rspamd-Server: rspam06 X-HE-Tag: 1677757066-161033 X-HE-Meta: U2FsdGVkX19P1AzoMTAp6CR2rLtVWq+ulXHGsExIEMFjxMCtgph/CSqUsfHFBFrsu3iz+Gpq79FDGzXzqF7DgSZXqms+sUoQOiu5yEpj9B/ZbkXZLhQ7NoRGTj030e6l7oP7S0C6aWL/YsW86jCSfFBjgYiFPilPaVSG5VWWp/arXqOi9DGTdygyX6hQNUdaj//kG6+UxMA7soZTTd6rC1IhQ4n276O/qF46GSHKKkvJL4yiTHouQMhFLTHUSOBGaIct1zqon8rQJDtwQyJpOf1+mxtUcLDdCUEkWaLnm2xGGg1jiECXzsxNgniSb867KqGTW83T4i8540iSo5cu61cL9h/+0DF0OEH4i8oq1LW1DEEfakcEMeLFFGGxam8r4p2Or3bBwVplnJqkvD1y1FI2CyRI1/0/qtM9opn75JuNoWCdCIVFiZJVp98lMb8CnxhEb8obKq2V6+9znpbPoiiG+754gs84Bx0CIPgTtBKZ12LdJkq8r6yLjEodlFluhGzXnNplUu/baPCWm7m0/K9onSfmNL2GKGTcmZQU1HV16IaEi0NUr2yGCK6BzRs1obMRIIwf6XuWwyhr7kmzm9Yg5FEU3dJYTrgqcKqsxY1bGmfk300LdB/oSw6Z+Mn7HfsCEz5FEe022bhOSNrE8cvt9mxHeKQzu8Foyrwbt0LDSFgzlDFil9Z1uhAyWiKh4vp3D9MnjDhRgTLcJ3hkcbCfyjOUxY3oDGApFir2Ipa41dbapg3GbwcCYa+GvOmC86hunReNJ6qpWo51yoVcwnSAk4HbypXDFzciVH32inAw4vD4xzAssegRvog9c/1/4bSdwhrkIVFVzdWMuZYJHF/nrczWWEdeOOqL/TwSNsJTc5Q/7NbXT15J45aWXwksCxZfgR6u/SuhQFhATk/hbaO34vWer5u52bgQW0jckimlNtLVZF5E98SH8u/GExSCXKxjg30RRdwk/eI/QZS ih2B2jhQ pcoQwG3Bva7Nl7c/xoFnpkCJlSwla/ZqRE47AQH9kydYHkX8RVD6WnTxEbF3SB0+KEPs65DytjFZuXJ0iy3QaAXnaIj9NPtJwKoscP1ZjHZSEke6iFF7COpqHM3iRc7+XRoImqfy5hqrLT/C8ADxjJBbv6WMvDMR4bnDZoGYo1TSsCJFnn4mkf4UyqNY2o++NYlNmjvgF27GlGU4wlFID/yYLFA== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
mm: remove cgroup_throttle_swaprate() completely
|
expand
|
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);
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(-)