Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3034892imj; Mon, 11 Feb 2019 12:40:40 -0800 (PST) X-Google-Smtp-Source: AHgI3IYXB0yhQXsvE7LClanLr2V/gS6MOESmMaD2vxvVvXmTM9KDX4POApfz5IMkdBQiVGx0AwDB X-Received: by 2002:a17:902:f81:: with SMTP id 1mr127465plz.174.1549917640516; Mon, 11 Feb 2019 12:40:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549917640; cv=none; d=google.com; s=arc-20160816; b=nyGaIfKWi9dcxSW4zga2pX0I0WjDZM+5OmroUjsFIlT+abCtZdx4kHlzyb/94D/Mgs 8krkPYYcylpGc9ku5p+pzM4NRnlVCeC3XJJ+rXNLhWSImLTYYx+wTXKxcNg+GdLIzRPJ O5bQ4kB+xU07951iZBP/gVV+ue52gKShLNy59jUmsOAFuDjOpep0yoQpjzGiyJTRyKCy A9ehkiUcdfHZ8rK+1X6/3mB2C8mNa7ibhJfEQyeh4eN74YdeV4J4Gi5INUe+lHKnJhm3 EGZ4pgMvuW1+P7ufULb/IC6xWhmL6WE5sv8oSzwzWAGJwyDjlwvCDqXBp/UIox4rB56c 1HuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=/fwPQA3qU7Aku9UVL4Xj6OeW7KvutLJujKV6PtXhaFY=; b=zdbecoWbcgppxU1alMUSNEmq0rQlRZ3N+q3hSSgJ5tSgNjamWBo9CdfbNTx6xRKgD9 yu2eb4bCo7tm7bRo3tWIQNp7bZyBitWlM42AitC3Sfegu0QE8rfuEcnJXECm28NKJ5qr DI+6TJRyy4R43TIP6bg8pyjTx7KNKCb/XGEEUKaBA2LbDbIEwncSS7OzW3QveAScMN/N mLd+2NJJw3JJ0aehA1BkLJZDnS/YUvbXI+EGUxsj5wiK2LhaLipkkor7SP2nK8YPkHpE bh1+Jd/p6sN9ZA1sq2EDjRGfOzHyIF09jeeYU8G1t7dhIQ/T7C/oT/Tz6co6nE98VCkX +fBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=KSmBfVOt; 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 j10si10447520plk.238.2019.02.11.12.40.24; Mon, 11 Feb 2019 12:40:40 -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=KSmBfVOt; 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 S1733102AbfBKSzj (ORCPT + 99 others); Mon, 11 Feb 2019 13:55:39 -0500 Received: from mail-yb1-f196.google.com ([209.85.219.196]:46153 "EHLO mail-yb1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729202AbfBKSzj (ORCPT ); Mon, 11 Feb 2019 13:55:39 -0500 Received: by mail-yb1-f196.google.com with SMTP id 7so4579439ybp.13 for ; Mon, 11 Feb 2019 10:55:38 -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:user-agent; bh=/fwPQA3qU7Aku9UVL4Xj6OeW7KvutLJujKV6PtXhaFY=; b=KSmBfVOt//tembuNf6qv9MiwaTLSt+/d0XxrB6YxhFnrNj7Jqys5VcAp3OPQumEVZ/ MqNLDSVZYNG1PxLrbZZsbpJcxOkt9kXzOTjxqhq2+IImeP4X2Y3sSeX/0PmGithDGw0F uMHmyy7dkXFRies/O/3nElxwMqp5pI5QaiAimssP6jMzVS5oq8XEHNa/fV0whvCn3yoG hX02Fy688V5oZdTAGvqfw7ARKSHPmaVRYE46nvOxhHfp1AMiewmMN+7RRMU5WlkLHTvj 10aFXwRq0vbyIvETLdDorc5HSbf9fgvWlID477XFlspaTWkVLjUt97ImjVTjHCJpeZ6j mrmQ== 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:user-agent; bh=/fwPQA3qU7Aku9UVL4Xj6OeW7KvutLJujKV6PtXhaFY=; b=M9v6JYm+UKn3NrPlC0enYEPlRWTtOnsp1BCJEyIyVyuhY3LEuBYjpNowyVif34mk4o mEh451IiohlpTuslIIh3VHgr2OnFgA+VdzVMu9C2MQWslbIqGpvUkWe45d6awg2HI8+c P6AxKlauxFxyabMx89ACSIe8zeGKSFu7WfMpjJuymwt7iP4yKWqvBKNaSVssf8pfjtAp uo08CDSYXy63Ru/DYiaxlolGsM+FRU23NpnaUv2nwRKV8LWD61x97EV6EjBOi0esqkav WcWfghGbZTGh04WB3HHugSZxn9rGxy2Gj7bPoTDwx6iQqdWuhqMxNR3LslbBHRqFh9Mx GU4A== X-Gm-Message-State: AHQUAuby73vyAwToPvL5u6ULy3ALavVXt+1hnei5uSimKqteupCADnRF hxmL+MZd8qbI6byZuhhab63Maw== X-Received: by 2002:a25:8e0c:: with SMTP id p12mr30114498ybl.3.1549911337759; Mon, 11 Feb 2019 10:55:37 -0800 (PST) Received: from localhost ([2620:10d:c091:200::5:6e5]) by smtp.gmail.com with ESMTPSA id 77sm4071530ywr.19.2019.02.11.10.55.36 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 11 Feb 2019 10:55:36 -0800 (PST) Date: Mon, 11 Feb 2019 13:55:35 -0500 From: Johannes Weiner To: Chris Down Cc: Andrew Morton , Michal Hocko , Tejun Heo , Roman Gushchin , Dennis Zhou , linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, linux-mm@kvack.org, kernel-team@fb.com Subject: Re: [PATCH v2 1/2] mm: Rename ambiguously named memory.stat counters and functions Message-ID: <20190211185535.GB13953@cmpxchg.org> References: <20190123223144.GA10798@chrisdown.name> <20190208224319.GA23801@chrisdown.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190208224319.GA23801@chrisdown.name> User-Agent: Mutt/1.11.2 (2019-01-07) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 08, 2019 at 10:43:19PM +0000, Chris Down wrote: > I spent literally an hour trying to work out why an earlier version of > my memory.events aggregation code doesn't work properly, only to find > out I was calling memcg->events instead of memcg->memory_events, which > is fairly confusing. > > This naming seems in need of reworking, so make it harder to do the > wrong thing by using vmevents instead of events, which makes it more > clear that these are vm counters rather than memcg-specific counters. > > There are also a few other inconsistent names in both the percpu and > aggregated structs, so these are all cleaned up to be more coherent and > easy to understand. > > This commit contains code cleanup only: there are no logic changes. > > Signed-off-by: Chris Down > Cc: Andrew Morton > Cc: Michal Hocko > Cc: Johannes Weiner > Cc: Tejun Heo > Cc: Roman Gushchin > Cc: Dennis Zhou > Cc: linux-kernel@vger.kernel.org > Cc: cgroups@vger.kernel.org > Cc: linux-mm@kvack.org > Cc: kernel-team@fb.com Acked-by: Johannes Weiner