Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp8267696ybl; Thu, 16 Jan 2020 13:35:30 -0800 (PST) X-Google-Smtp-Source: APXvYqzeRGSaJWKsQ/5V+yCcXkUUP2zhhihK8+6q47ErQzsHfQJXSrqi5KrwdML/Yg6V1kQlr0wd X-Received: by 2002:a05:6808:3d9:: with SMTP id o25mr1007012oie.126.1579210530224; Thu, 16 Jan 2020 13:35:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1579210530; cv=pass; d=google.com; s=arc-20160816; b=jRJGofI2BiDA5IFiW809O7qCU4I1G0MP4sSkc+lGJIQTV9WtzZM/AOAG2c+c9loSdC bdCGg8ZuEaG+G+34g02BFEjzEMUmXxDj9xwSOiuO7ryTm1KeQ9FHt/j3TNzepXmw5ewJ 0+zgOBcRG4PG0rs8quiNWjJKMhfT7QXQtyo18lGyq8oD8oyFVsryt+UQkCT26aa7WNw2 /YvTAzLMK0X7fpZIDgoEClfhFQRbGv/Ew5gWH5QfMeyDHolWR8pgdviC4qt9FHXBq9Za a7N68SdtGth/JWogarbI+5B+nHaRnH/uK/gPfXSuhytTOLwdLadXl9/mx6vWkR7uXw+E cc4w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature:dkim-signature; bh=6s+YYiYy0h9ardOuLOrcnfHZHEWKGxHwuAlAHUJEO4I=; b=dtjb61AcqLGeNuelwegZ/VzPiV0JyN0ODrpr3hcKF/XBGo3WYYHZC8xCYR6ZE5PNts EAbDrGA6ASpcvKEuXPW7Z8pevYqTDYZVlzNUAtDXs14ysciYmoI8YA1E2HmX0DEK927U m4vIRfSxdWlz5RH/WPwn16X4bIZ+Lgy6R99HZmo3zYVTlFiDdeGxHJnK9bNwsHfyDDzG gEyJkSFgdN/O5HBkkxhY/AVFn/Cdh/yfOb0T4vuLeeat4FzZD2/H1p3djywkvESUHiS5 vY/o8lvGTEqECp6Pn3DoBJqBhK7mO5G6FAmLygEcJLsbJREG9dBq6ENgeFM3aUEwR/Kc 0CNg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=VXgDEvMT; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector2-fb-onmicrosoft-com header.b=UYyOd+tA; arc=pass (i=1 spf=pass spfdomain=fb.com dkim=pass dkdomain=fb.com dmarc=pass fromdomain=fb.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fb.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1si12596570oip.277.2020.01.16.13.35.18; Thu, 16 Jan 2020 13:35:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=VXgDEvMT; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector2-fb-onmicrosoft-com header.b=UYyOd+tA; arc=pass (i=1 spf=pass spfdomain=fb.com dkim=pass dkdomain=fb.com dmarc=pass fromdomain=fb.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fb.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405480AbgAPRmJ (ORCPT + 99 others); Thu, 16 Jan 2020 12:42:09 -0500 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:2830 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2393635AbgAPRk1 (ORCPT ); Thu, 16 Jan 2020 12:40:27 -0500 Received: from pps.filterd (m0148461.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 00GHY9YT011392; Thu, 16 Jan 2020 09:40:19 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-id : content-transfer-encoding : mime-version; s=facebook; bh=6s+YYiYy0h9ardOuLOrcnfHZHEWKGxHwuAlAHUJEO4I=; b=VXgDEvMT3JE0ck/Q6eRctzdVMAIXIMjtgJ74w1LGRuhuHkNOJyGxbSNs3/HXLqtS+7Uc z71WG7DfWr2CgezXTX2daDLHj/djGoUcrNYSFzQytkIiOEH+t6Kw3/Va3TOt4Y0JH7ds k25Er4OKua69KDHQsMwdju6qRBpw1jY6QMU= Received: from mail.thefacebook.com ([163.114.132.120]) by mx0a-00082601.pphosted.com with ESMTP id 2xjj1uak15-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Thu, 16 Jan 2020 09:40:19 -0800 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (100.104.98.9) by o365-in.thefacebook.com (100.104.94.228) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1779.2; Thu, 16 Jan 2020 09:40:19 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ArWcUJrTx4e/BImoZJEg9NZKCS5xw4ubAn/U/kxH6yl+WX4QtTfrcBTDqN2HHYcYHOvbhmU+egXCyam640zLGB+Co2FvVSc9357j2x5Z4/kcmNHoaZd+2NSXeEX2AbtDkeZGeZCXEItUkWsRSQQuRl7/u7C0aPXz5RPSajqA7J7cgp0Rx1s8bagGebXaGIqt8Sewk4pjjlUlJ9JQXBDSJ0vVw9jlCKj5wiYXID6JL3a/VAvxr1H6CJyxQm3l3k9qHOgNIOzIiPmFltJ7PoVPxOjJ2yHQwMIMs9M/UcsqhqcGEvPRlo7ZZ9dJo+OkTfTykqOzhUTbZk4qpfJzR2gL5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6s+YYiYy0h9ardOuLOrcnfHZHEWKGxHwuAlAHUJEO4I=; b=CxrpK2zW99PzCUfc8gNgDVBXRvWj8ut1imzvbXbSvydmkJ/zDxcOe4FCbVnyz1tDouAffgxE0cCC6z21O8riNtFcN5tY/9sMuHt72DPa/dCdz5bC/BV7woSSJr/St4Sg7I/trXav5Qfa5Q+UiYvvE71uh6wUTfOggihAkAXlPevz7Rxy8SXCskfjk8UWk4qlqag9IgZ877Tnmd7nDk+xtsspNyX+0KPExtLqLKWiQyxfk2rbmzTtL7devSH0NuPvLIdYGMS06ZvpsyT1QGVoPHqcOR9IKFNxmrFfJ3xlZ1n6EFoi7EjF8vny1JA3HfTSxV2FDokmyxaXD4VPkNUBSg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=fb.com; dmarc=pass action=none header.from=fb.com; dkim=pass header.d=fb.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.onmicrosoft.com; s=selector2-fb-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6s+YYiYy0h9ardOuLOrcnfHZHEWKGxHwuAlAHUJEO4I=; b=UYyOd+tAfxhyMOhRBfmbQSZAaXH2OG33WRae0sNR3jio3K7O6fNwSe3AbpV3xOAWZR7w02Rvpb8B43jtFoFuNZyYAWzPSmpQJ/mp3/dhHStTHE498XCg0H7F1UeMvjIVnAcKhscQVSQyQ4b0TOTgctNzqrDKFtanffIttYbyJk4= Received: from BYAPR15MB2631.namprd15.prod.outlook.com (20.179.155.147) by BYAPR15MB3254.namprd15.prod.outlook.com (20.179.59.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2623.11; Thu, 16 Jan 2020 17:40:15 +0000 Received: from BYAPR15MB2631.namprd15.prod.outlook.com ([fe80::ccb6:a331:77d8:d308]) by BYAPR15MB2631.namprd15.prod.outlook.com ([fe80::ccb6:a331:77d8:d308%7]) with mapi id 15.20.2623.018; Thu, 16 Jan 2020 17:40:14 +0000 Received: from tower.DHCP.thefacebook.com (2620:10d:c090:200::2:492d) by MWHPR10CA0004.namprd10.prod.outlook.com (2603:10b6:301::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2644.18 via Frontend Transport; Thu, 16 Jan 2020 17:40:13 +0000 From: Roman Gushchin To: Johannes Weiner CC: "linux-mm@kvack.org" , Andrew Morton , Michal Hocko , Shakeel Butt , Vladimir Davydov , "linux-kernel@vger.kernel.org" , Kernel Team Subject: Re: [PATCH v2 6/6] mm: kmem: rename (__)memcg_kmem_(un)charge_memcg() to __memcg_kmem_(un)charge() Thread-Topic: [PATCH v2 6/6] mm: kmem: rename (__)memcg_kmem_(un)charge_memcg() to __memcg_kmem_(un)charge() Thread-Index: AQHVzJKbgVUSlNYKkESLg4k9oItO2aftjtoA Date: Thu, 16 Jan 2020 17:40:14 +0000 Message-ID: <20200116174010.GA15833@tower.DHCP.thefacebook.com> References: <20200109202659.752357-1-guro@fb.com> <20200109202659.752357-7-guro@fb.com> <20200116173002.GF57074@cmpxchg.org> In-Reply-To: <20200116173002.GF57074@cmpxchg.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: MWHPR10CA0004.namprd10.prod.outlook.com (2603:10b6:301::14) To BYAPR15MB2631.namprd15.prod.outlook.com (2603:10b6:a03:150::19) x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [2620:10d:c090:200::2:492d] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 23ebee7f-c5e9-4568-abdc-08d79aab24d0 x-ms-traffictypediagnostic: BYAPR15MB3254: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-fb-source: Internal x-ms-oob-tlc-oobclassifiers: OLM:8882; x-forefront-prvs: 02843AA9E0 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(376002)(346002)(396003)(136003)(366004)(39860400002)(189003)(199004)(4744005)(52116002)(1076003)(8936002)(8676002)(66946007)(66556008)(86362001)(71200400001)(6506007)(66446008)(64756008)(16526019)(66476007)(54906003)(81156014)(7696005)(5660300002)(2906002)(6916009)(316002)(81166006)(478600001)(9686003)(33656002)(4326008)(186003)(55016002);DIR:OUT;SFP:1102;SCL:1;SRVR:BYAPR15MB3254;H:BYAPR15MB2631.namprd15.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: fb.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: /88UTiiESvFryIYrPVbpJcQDj4PrgLQAEWEGoL04DQ4PHDlLQCl7/b+xJ2KB29qNd8KlLCjGtGRRA2op7hcI3Zic/no7+E3gFWNzrZ/k4reS/IchW9zokabaxuEYGJSovGtme8PexGtFjrSQbDz0fdDEk4id7FgI6DiQDnJpzRTwxELKgT8MzZqgYlfqsGcicoggdmE6LuQdCJ5MRd1UhfKOdkHgOhtGDSP4jHPeSyv8XXW4m6p2nqHsugawIDPZzJsJr2/61+IGrQn03ErEUW9+IrOTm/3HLL9M2M+sqNrwvV+c69sGfJqS74cTjjDVHjKXJZIBRP9iMWpXAN9rvJrZyBR8jENyS+GgPl9CCn2xRZammXr6B8B0m7NZM62cByaB0JS2RE86u/xch34FOIxxlmiuuxZ5VNader05ldffjbH6NOHW5izU2zJ0hjKG Content-Type: text/plain; charset="us-ascii" Content-ID: <795EB003EDC6FB458C73B493DF0DD550@namprd15.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 23ebee7f-c5e9-4568-abdc-08d79aab24d0 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Jan 2020 17:40:14.6043 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: l299UcLCFgOufrgjtu09PrCq5MfI6152S+8zc4GX+UWKf15iHRRPCvg8i6IczClf X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR15MB3254 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-01-16_05:2020-01-16,2020-01-16 signatures=0 X-Proofpoint-Spam-Details: rule=fb_default_notspam policy=fb_default score=0 impostorscore=0 spamscore=0 malwarescore=0 mlxscore=0 bulkscore=0 clxscore=1015 priorityscore=1501 lowpriorityscore=0 phishscore=0 suspectscore=0 adultscore=0 mlxlogscore=393 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-2001160142 X-FB-Internal: deliver Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 16, 2020 at 12:30:02PM -0500, Johannes Weiner wrote: > On Thu, Jan 09, 2020 at 12:26:59PM -0800, Roman Gushchin wrote: > > Drop the _memcg suffix from (__)memcg_kmem_(un)charge functions. > > It's shorter and more obvious. > >=20 > > These are the most basic functions which are just (un)charging the > > given cgroup with the given amount of pages. > >=20 > > Also fix up the corresponding comments. > >=20 > > Signed-off-by: Roman Gushchin >=20 > This looks good to me. I also appreciate the grouping of the functions > by layer (first charge/uncharge, then charge_page/uncharge_page). >=20 > Acked-by: Johannes Weiner Thank you for the review!