Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp8039809ybl; Thu, 16 Jan 2020 09:36:11 -0800 (PST) X-Google-Smtp-Source: APXvYqzOhXTeeMMQsTKQaI7Deb7efPLbc+AEB5A4D+65/t9CyxktcoSmb7HefzojnQtawgXqGvoY X-Received: by 2002:a05:6830:1353:: with SMTP id r19mr3031252otq.288.1579196171245; Thu, 16 Jan 2020 09:36:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579196171; cv=none; d=google.com; s=arc-20160816; b=ob8pUT3wsoBSAhwxLCZCaFn/NqcTMn5CL6aoMLUzCzai4jjNppEBuJgBzccA2SPrrc Z4U0zMcurukT5lkpKCsOwmfLEjjaXwuLEGt9uYfBCXotB/pAsnMt6oZtuYpdoMnk8DzO lwLTjRTq6glq2y/6FkqGSMaCI27w/GbFlEBkCD9ccOVdOejiVjJCVa2iFTHVmIaKVKVT 7fu+/7+byDu6vE5fKBHJ7BhHzHDRhxKFgWnExHDfF33Me5nTPywrJOoCkwt1R7iKlj8p aNglXT80owaJfHgWNDv2Ary0IaWibeuqeE6s5VCO6mCyHBwZpAi10EdUZG89GFAZs18r PwTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=nXB1QQ2IuOraqyyfUU+xQ4aQQGOF9c/16KgO75ZTWiU=; b=uI2TAxwIY9SlG7GMGA+Q4hzO5Ctcu0bxarVD4p6TueTg496umkRUeWYS5oMU/3BYzq +O9A+sSCKEhSxKYXHpol9kYoZ3ojIpdOYQY1Q6AQE9rNcoH72gCMUazGXkoRtLoUxBaq OGjG/fv9gj5ZUpGdNmrz+waY9Q7EYq3JRiRFdTJNKjv2POlOEybufwDl3w9mWw/9F6vf BiKR1I0C016bBzc5sbf2HaCei3mp97UGR8dzUmySBkKpboOOvB+3w9efYpWeKT5M2jnZ 8xoa8Vumq63e0oG4WoSDdtXhA7YuLTIQ6DfDCFZ7rDthsC7l4JmMgDizAJ7n1PcWwtoy bA1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=FHy404mC; 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=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c7si14220950oto.305.2020.01.16.09.35.59; Thu, 16 Jan 2020 09:36:11 -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=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=FHy404mC; 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=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404878AbgAPRej (ORCPT + 99 others); Thu, 16 Jan 2020 12:34:39 -0500 Received: from mail-qt1-f193.google.com ([209.85.160.193]:43212 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392947AbgAPRaF (ORCPT ); Thu, 16 Jan 2020 12:30:05 -0500 Received: by mail-qt1-f193.google.com with SMTP id d18so19489624qtj.10 for ; Thu, 16 Jan 2020 09:30:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=nXB1QQ2IuOraqyyfUU+xQ4aQQGOF9c/16KgO75ZTWiU=; b=FHy404mC4DAy7avamv6rP/tsX7uXrpLtoSjPwiMjoZ0SqcGxITSnPNJZVBXFcW/T81 uouPRPMh0bW+Ls5KLmYmvhW3LD+wuD0GUeJkGYdhuUWqETB8A+IcdMx0euMvDy3eOrGC Q9bmG6NpVDsBPG5GuzJewaoG8pHLTriec/oHOSKxP49MnAf4o6tycXpj0zOocC35I3lE vo6ZZ/lU+AUJ5Z5ZcIIpDHVzS1qrb+pyJE5Ymrr4libH2/npms2xZiCp5JfKd6fWsvuW wPU5z6ht6cLg6Rldc4fnq+WLuYaN5tP/nI0fxujCyhsFWLp+Ywn+/pudirlk/JIf7RTz 5dIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=nXB1QQ2IuOraqyyfUU+xQ4aQQGOF9c/16KgO75ZTWiU=; b=awQn2LcyvzCZouNCN8kaUj3KjDOnl78gz6in9+C9feXO1DqPJXv/RRbloGX/+mvqTu pYoisAKVNGHEvr0+8vRx8+QQ5CvNr2ElcY6K/WXFOVGEtn9MBU3E9QJZajhYl2kHzFhL YdfB+iuI3GRrOPvCkal3MQblCLs1fqjAVlUGGBVciyzN+z9FyOALgX+9gozhBTNMNs+x VcujJE/8dA2A3mXDFtA/QYX86yBWbqYAFuqF6A8GIKtUjlNzGn0z+A9fs+mNsRvH3ujn XHKrUx/UCZO19xs9APd/fK+I6yRfG90kixhFKhtiLcm9+xGQVhEdiBQ2aMlNBH/Q7MOY iN/w== X-Gm-Message-State: APjAAAVYC//4aJJ8wa/TyI0s3a4I1lIMni7cS8osFZpkcwgGVsV5q5Ae vMlFGn1uBtsIEDWC4VqQTBa/QA== X-Received: by 2002:ac8:2f03:: with SMTP id j3mr3537882qta.180.1579195804411; Thu, 16 Jan 2020 09:30:04 -0800 (PST) Received: from localhost ([2620:10d:c091:500::ae73]) by smtp.gmail.com with ESMTPSA id k4sm10398554qki.35.2020.01.16.09.30.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jan 2020 09:30:03 -0800 (PST) Date: Thu, 16 Jan 2020 12:30:02 -0500 From: Johannes Weiner To: Roman Gushchin Cc: linux-mm@kvack.org, Andrew Morton , Michal Hocko , Shakeel Butt , Vladimir Davydov , linux-kernel@vger.kernel.org, kernel-team@fb.com Subject: Re: [PATCH v2 6/6] mm: kmem: rename (__)memcg_kmem_(un)charge_memcg() to __memcg_kmem_(un)charge() Message-ID: <20200116173002.GF57074@cmpxchg.org> References: <20200109202659.752357-1-guro@fb.com> <20200109202659.752357-7-guro@fb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200109202659.752357-7-guro@fb.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > > These are the most basic functions which are just (un)charging the > given cgroup with the given amount of pages. > > Also fix up the corresponding comments. > > Signed-off-by: Roman Gushchin This looks good to me. I also appreciate the grouping of the functions by layer (first charge/uncharge, then charge_page/uncharge_page). Acked-by: Johannes Weiner