From patchwork Thu Jan 12 08:30:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 13097559 Return-Path: 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 2EA32C54EBC for ; Thu, 12 Jan 2023 08:17:42 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 96D898E0005; Thu, 12 Jan 2023 03:17:41 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 89F3B8E0007; Thu, 12 Jan 2023 03:17:41 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6CAA28E0005; Thu, 12 Jan 2023 03:17:41 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 5F20F8E0001 for ; Thu, 12 Jan 2023 03:17:41 -0500 (EST) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 36181C01F5 for ; Thu, 12 Jan 2023 08:17:41 +0000 (UTC) X-FDA: 80345443122.13.D68CB6C Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by imf28.hostedemail.com (Postfix) with ESMTP id 2C737C0008 for ; Thu, 12 Jan 2023 08:17:37 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=none; spf=pass (imf28.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.187 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=1673511459; a=rsa-sha256; cv=none; b=0DkyGxS/QwR6LW7xLqswe18WQmOea9skeF8qIZTpb37yVAgUqSVWoWdBtc3zetkrFoI0Z4 lKcdGilPJ2t4wsa4ShqwdLpLkFLO5/mgB+6lOaffzNzOEB5ycXOfh342qHwgptwR1jS+Q1 KmROQinBfoaCQ8/qYC1bJcm9B7nE4Lw= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=none; spf=pass (imf28.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.187 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=1673511459; 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=Al8EKcnYAtYB1JWIzS1KLhE26inWUEAs3Hs0krdsZ4w=; b=SeA97kq23zsS+eaq1ZRxCqYx2SEAU0vOQNybLJ9tOMLDto8Pru6MYQT+1GvdGO8CDyi+te 7mPtTPZ6T3HHyHpvzimFRKFiF6W5LwhLntfCuLPS99TvX1bPrPuUFwBB4exnEs6MtaADwn +Hgxbvr6RokkBMcHHBcpieW/AIEqIx4= Received: from dggpemm500001.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4Nsy324H2pzqV7h; Thu, 12 Jan 2023 16:12: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.2375.34; Thu, 12 Jan 2023 16:17:33 +0800 From: Kefeng Wang To: , , CC: , Kefeng Wang Subject: [PATCH -next 6/7] mm: memory: use folio_throttle_swaprate() in do_swap_page() Date: Thu, 12 Jan 2023 16:30:05 +0800 Message-ID: <20230112083006.163393-7-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20230112083006.163393-1-wangkefeng.wang@huawei.com> References: <20230112083006.163393-1-wangkefeng.wang@huawei.com> MIME-Version: 1.0 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-Rspam-User: X-Rspamd-Queue-Id: 2C737C0008 X-Rspamd-Server: rspam01 X-Stat-Signature: tjw1n7j8xc7um74emsafwneexjeoaih3 X-HE-Tag: 1673511457-151145 X-HE-Meta: U2FsdGVkX19Frwx+swMFp7FbdtfFDXwSno/3p430cKwRpNo9WYXOs2ObvmqRTUq2eYvYub1A85i7SJ0OYigIOqtucn+Jj1PPOpgdMxYYIPVyHIRUw9UvMpGKybL8JggDYH50urC3T3ueRr+AkdYL6i+6INCVYdw74WBjhVRoMBX3nwlXUl3l9F0XXv9HDxBdf1a5AUFT5SeVcilPbtMP5eoU5VkswEokqolQS3LLEZxtJaF7Yu1mSoIT2Fh+jf4ZoEnBa8LvNf7kbMzlvtRR8U5boMJZbzjBmDlcRyE6qpVHEPfP9Uk28HY4KIs0jowNpTyxsrGVhavTQ3A4fxKEoB8/8yEK0LsDuvnXgCTEueDsgelsJ+wSSeZK26YtnNdsfXIhM3HKMhi14g+si+gzZHvvA13KgPcKv/Rluj+bH5QMfDb4O+PLNoGOR2w9gZwUMBKOSvnRTyS+A0kjwLKheRQ3ek0+q+0SInEO/O+ipgPSLT61pfPL/zCi0Qr+930jW4N4CsC+ww4qb8HPPbAf6eAxvYIMhNbxDjgJxTujFr4AdtZudVWGZ4iRt83/OanvSbgdIYSKpqOaH9JZAhiEG4ZEIRSJtWmHIHNXvUR4vpNTq0XS7CU1RN/+uoG295PaQzIqkLhYl97Ye6rtg+epFu4HLiyJeIjKt26SfM+aijvNSG/+6Q8rV/hKXmSfMYByrkm7ldbMJbW5E1kSyqRGj+X+hc79bvIl5zbFpR4WeaZGPGAT9iZtYr7ahYQiXKwQUasYiuBurb7V5EqkQuMWufkpXpo3GMnLBW4XtwdBzsl9Ql6RJKDY5IIfa/4L2xSG84sU+66fIjqVGehxvRY4V2Xu/3nHcG1tpIhAPQAEno5D44OXzC4Yc/af1NkjH9ylZjvryUKXSYUFqbBxW7XuWhU/5euRM/Nr 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: Directly use folio_throttle_swaprate() instead cgroup_throttle_swaprate(). Signed-off-by: Kefeng Wang --- mm/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/memory.c b/mm/memory.c index 746f485366e8..abc4e606d8bc 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -3839,7 +3839,7 @@ vm_fault_t do_swap_page(struct vm_fault *vmf) lru_add_drain(); } - cgroup_throttle_swaprate(page, GFP_KERNEL); + folio_throttle_swaprate(folio, GFP_KERNEL); /* * Back out if somebody else already faulted in this pte.