Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5300303ybi; Tue, 28 May 2019 10:41:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqzp9oPaqGS1il3CjuRG3bMCZDCPlwh0EtSV487yH76LFmkkFD/awLHWUp48pg9dJNN5cFM+ X-Received: by 2002:a17:90a:9f04:: with SMTP id n4mr7185417pjp.95.1559065297124; Tue, 28 May 2019 10:41:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559065297; cv=none; d=google.com; s=arc-20160816; b=JWnLaDbo8UZsOpROyrBrVIC+lqyU9axfos+75Fhczc093/+gdV487LIX2vahpA5AOC rHgrnv9/m6S5r1YMNk4UIHPoPWjriKSllp9Uus2obvqx/IZPIdrAcZqlSP6RaEuuxvTU kTBs8BGQK/qqueHmNcE+hGJg122nbDK2Ix+yRlynWON3Xuz8H7YnSb0tmxqnHnevHwrC EkaGpxyu86EqVVkYu0R1EfkYXOaz28b6n2WGL/sbODJGvuAICfQFyhzY3f+okhlNHKi5 68e9JWokLOf6IDsYx6T0tialFnP8cZPSW+exBnKIGj9mJlh2BoH31SiXKzRlakZm/SZb NA5Q== 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=r8PmQcft5RJ51eoZR31WNho/xyilsVu7uCLR1yi4QeM=; b=bsnpmkOAURYKRmuchtTVus1SIlJFiy3SzMjyqjWInEv8HxUqZZ949bqRqzw3ej6AEq WT37xX1QRbH2KUWQ4Nqi7K4CefK9HK88mtYtwoEn87yJnoFCxl7z0LojYUAarZY1X3CR J0co79xRQaDs5BFxrlYfb6ymZUIMM+WSPoZOczlbLWG6oqQzjK+jEmvGdVhM59E68CX7 NPTKwsQLaKkouUgwQcE+tXtNyIvja0ALjpOmqiQKmlb7VIw2jCNwQmoVw2JhrWW6u87w 59aE9TYVTeZu0FpmEOXINTTpv4Q9/GEg5xMOI8qqLFyY8zXMfrcbzNAFL9vxt28ddQgM OIig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JT4C1GZ5; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h1si23150030pgs.290.2019.05.28.10.41.07; Tue, 28 May 2019 10:41:37 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=JT4C1GZ5; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727246AbfE1RiV (ORCPT + 99 others); Tue, 28 May 2019 13:38:21 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:41595 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726515AbfE1RiU (ORCPT ); Tue, 28 May 2019 13:38:20 -0400 Received: by mail-lf1-f67.google.com with SMTP id 136so5123407lfa.8; Tue, 28 May 2019 10:38:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=r8PmQcft5RJ51eoZR31WNho/xyilsVu7uCLR1yi4QeM=; b=JT4C1GZ5u716MuG38oMA8m4kjqZNa8qKH9ij5bmN31mD37QnGs2q/DkpLNNQT54Zah rUr1i5yoLx+yn8qZ9Z6/k+NXbn69dEk4UXskpJRCo4dqFVYZi1Gp9O+oNSmX7wtFtmTW i41ZJ+O6WEW+B/XteUFnOgI6Ny+omV83U8+9UxpLp7+YOX51rxGfMYlVkqNg9scqKNfI WJIUBk6E9hEM4Vz1E/YKBi102DMg1BYgG9OCd3G59CHXnh2xpEjE3S386PD07hkNTX/E 2OeALMR2jlduzQUdutJqLwqHpL4y34Re7iAU4oyso+lxa2BJz+GZ5rAHJg7MSOyUyYXg XYOg== 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=r8PmQcft5RJ51eoZR31WNho/xyilsVu7uCLR1yi4QeM=; b=Iw8YZnEhuHQD2GIAJ7a5oi2IArKq4+4SaDkv74T8fNo60TTZ6ur11/lRRktSpAcoqo B0tIWPt03OYaypvtFxDl8+qwhSbaYhAq6yJgey6/k7oB4sHCIVpn+M1X61RGBR7YBjLe luBPlLC/rdHxthbASplrN0pkncOTTxMN9lIDatdQDXtqtsUYRmos+J7jbS4dtxqJ3gxp N4LDhejlCRivX9DeXwKOctfDbOXuwWy8Pf17wt5kXv0ASYKKmWu23KBoeO/vNQ/MD84W lq8cKwEQHfH0gGmgdQI1XBkhZg2Pl8ZvKvs9MzfhqAaHAV4rQ0miP2qPTECUGRgnevbs NUpA== X-Gm-Message-State: APjAAAXtRIR9HKS3hp/FKHbbH6peosqLpbPqHhkXAUTV1L4LONBcodX/ dsPhPijB7SepIthZiMMnPqs= X-Received: by 2002:a19:2981:: with SMTP id p123mr11785310lfp.190.1559065098989; Tue, 28 May 2019 10:38:18 -0700 (PDT) Received: from esperanza ([176.120.239.149]) by smtp.gmail.com with ESMTPSA id q124sm3003230ljq.75.2019.05.28.10.38.18 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 May 2019 10:38:18 -0700 (PDT) Date: Tue, 28 May 2019 20:38:16 +0300 From: Vladimir Davydov To: Roman Gushchin Cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, kernel-team@fb.com, Johannes Weiner , Michal Hocko , Rik van Riel , Shakeel Butt , Christoph Lameter , cgroups@vger.kernel.org, Waiman Long Subject: Re: [PATCH v5 7/7] mm: fix /proc/kpagecgroup interface for slab pages Message-ID: <20190528173815.2km65nchedfumslt@esperanza> References: <20190521200735.2603003-1-guro@fb.com> <20190521200735.2603003-8-guro@fb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190521200735.2603003-8-guro@fb.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 21, 2019 at 01:07:35PM -0700, Roman Gushchin wrote: > Switching to an indirect scheme of getting mem_cgroup pointer for > !root slab pages broke /proc/kpagecgroup interface for them. > > Let's fix it by learning page_cgroup_ino() how to get memcg > pointer for slab pages. > > Reported-by: Shakeel Butt > Signed-off-by: Roman Gushchin > Reviewed-by: Shakeel Butt > --- > mm/memcontrol.c | 5 ++++- > mm/slab.h | 25 +++++++++++++++++++++++++ > mm/slab_common.c | 1 + > 3 files changed, 30 insertions(+), 1 deletion(-) What about mem_cgroup_from_kmem, see mm/list_lru.c? Shouldn't we fix it, too?