From patchwork Thu Aug 3 12:00:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaohe Lin X-Patchwork-Id: 13339878 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 AD23EC001DF for ; Thu, 3 Aug 2023 12:00:55 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id F0F4328023C; Thu, 3 Aug 2023 08:00:54 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id EBEE628022C; Thu, 3 Aug 2023 08:00:54 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D867728023C; Thu, 3 Aug 2023 08:00:54 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id C545D28022C for ; Thu, 3 Aug 2023 08:00:54 -0400 (EDT) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 93CA8810F4 for ; Thu, 3 Aug 2023 12:00:54 +0000 (UTC) X-FDA: 81082652028.04.013F9B7 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by imf16.hostedemail.com (Postfix) with ESMTP id D3389180053 for ; Thu, 3 Aug 2023 12:00:44 +0000 (UTC) Authentication-Results: imf16.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf16.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1691064046; 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: references; bh=iimnyc8GmsTKunzof+eDp4Z5C46ocU0k81emLjpyhy0=; b=4PljjGeH22TgF0hxp0pvxZeQrftXh1su1MrWjbX3ARuXy2Zy3b1U+hnFHZ0GtkkYa1q+B5 l/oHFKir4rXFK+Iu8FuEMZ85iNjOlZc93tqKvBuqNimr6Si8L4NOtP0NJW0s9xKVUimicJ 9ilpAXZm9HqWkyRMscOfIWERDL/QWVM= ARC-Authentication-Results: i=1; imf16.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf16.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1691064046; a=rsa-sha256; cv=none; b=Oub2BKJO9S/JuHnCFNg50o1iYIt4z1h8qAB346p8QfSlv4jmz/HExcoimIdV3PB4budH+d 7hPJOqRL/JtopC5EgBp3BkbIe4CxUqREuC8409qO863HG99tzhciBf80MY65vliDQjsXLy ndoVLnio0AheXCAcfg0PYHwORzrNTPM= Received: from canpemm500002.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4RGnT16l6dzrS1x; Thu, 3 Aug 2023 19:59:33 +0800 (CST) Received: from huawei.com (10.174.151.185) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Thu, 3 Aug 2023 20:00:37 +0800 From: Miaohe Lin To: , , , , CC: , , , , Subject: [PATCH] mm/memcg: fix wrong function name above obj_cgroup_charge_zswap() Date: Thu, 3 Aug 2023 20:00:21 +0800 Message-ID: <20230803120021.762279-1-linmiaohe@huawei.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 X-Originating-IP: [10.174.151.185] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected X-Rspamd-Queue-Id: D3389180053 X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: w578soe8uoeirb75fwrj585ytyn3hcz5 X-HE-Tag: 1691064044-431157 X-HE-Meta: U2FsdGVkX19PghIX/KKWZXk2zRVceIXs5g1MUAFJZWC8Y0iopNEXsahV+a0tqvsUuIY0ggzfO2t4YfUS2FtbzA2uOt++fO2C6hhsu0IwIGqML3gBNGx+VhFPyCbLIHqG/k+qNjkTc3yOjiC/IKAVAWbabQuADaBJDGn4CB6aPqRMHRqP+VNY1d9Kh3jY6XhU407ve8NIjt/CU4+KnfmfFRx/DFsPxG67TM01SnrHAmn7IaY7OzgS5zs3qZJ2kgua5H7etuLnsHjKgf7GS7s0AeJcBWVUh1PhXgdu4rK0dWervsV6sud2N886xMW7eobJrSBmrMnvPEMwtSEXfaqIBjHvUTBPvPwsWXlXhjKsDOtc38qoX3DmcgMnpaAezP8gAY+3OrVKiHgzN+Ppwc3nhevkCpklCMXtW6H/X2s1ibvPxIxzLfAGlehaj78T0W9xe7QVwGTQMZV3K3aT++75lcZ1tgy8RYPYY5spelHe9pKDSxqE2WzJBmLxgq+8mYcmgWwOYxpQAXutr0dSoXHy1y88nkJo9BC0GICIzKf53wmM6G0KxFP6N6hs1ptN1bmo1A4WG9U07BYVBltwjViE6OETyAy4pwZC3/7ptmCpUan0hWQ6xqc/mxBxMPmJtlPMK2MfqqhR+ehhX1R0SIjG3kyFSMg5AdlrGw+Was+k8wtb9xcp36/MTGFjeNsIgeSVRq4XDf457vwr5dd2a+wRd6RmFXNVKs5sWJrvsk4HknS03SI7uMKRLKspQDcG+2wPSPVX45xTSlc4MJM00AHOwTlCQT87z+URAhXWh21JtWGMnVxGotnWlwiiPFFs5GJEOs6NEGDWHjXa5PflJSobOF0nesUqI0XJ4EO0g0sLvij799lz60HE18DcmM+SGOQFqYyUWUKOumH7s1keoybgQpOflXzCeybNqXDDNWeqY8UOV9y4BTsDrKBk25AO2WImuhD/81Riws0EWyUDbmn 1ILmrfiv mJeSmFcjnFG+WebWrP338t0xBmdqfXQlbY28XgQeo7mxThxLJqX+Mn9bf6o3Kp3c7RQfoPmPuw7t7KTa+9le/GNX5xOxbHPLm1WWKpojPRNjSxFCICK2f+IMODlMFF8uvn7JR8MzImm27Asdd+LwOuED52AQ0/I6Y6tLHPngQGQerGCd2enCSjTvo1cdWa4FG8jzq 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: The correct function name is obj_cgroup_may_zswap(). Correct the comment. Signed-off-by: Miaohe Lin Acked-by: Johannes Weiner Reviewed-by: Muchun Song --- mm/memcontrol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 1ff51d8df84a..a026058ac720 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -7786,7 +7786,7 @@ bool obj_cgroup_may_zswap(struct obj_cgroup *objcg) * @objcg: the object cgroup * @size: size of compressed object * - * This forces the charge after obj_cgroup_may_swap() allowed + * This forces the charge after obj_cgroup_may_zswap() allowed * compression and storage in zwap for this cgroup to go ahead. */ void obj_cgroup_charge_zswap(struct obj_cgroup *objcg, size_t size)