Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp2668694ybx; Fri, 8 Nov 2019 07:41:02 -0800 (PST) X-Google-Smtp-Source: APXvYqzrOJvw+CHPuYnMxDaTrpdCLKl5o9vrmVqeE6YJd8SS2/Z/veFACRl1OuhzioY6JvMqG8wM X-Received: by 2002:a50:9fa4:: with SMTP id c33mr10930091edf.176.1573227662733; Fri, 08 Nov 2019 07:41:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573227662; cv=none; d=google.com; s=arc-20160816; b=kV8GegveJyPi3OiuntMiDzFIrc5M0eDCXkeJtw36zUn1pZOW58tjE5617e7qw0IApM aaH5mqDtw/2Qwxv26FQiBEWmXPhU//iS1G99Qeq2+DVoXS06nkGw4wmDgXKJWQr6Lq0G ORHpFJFAUNTWO3/k/FXCCcDOEt3zRXj1L6a4Xv+oZyN9Fs5p64HNkd1iYGQ32v3y4gGk rBwak0XA05BBpZyiW/5HjbeJcieIxIuB1wUusQpF+4xTJ3+o5V6Iq1sXPXo5L4Wz3613 emBeqo4fZUBWUskUZNGaydyGpAqULNl7jvakwYofqf2HhRf8nogVq/VL6YMVe74+OPMY pgCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=QrNR4NMvKlkEMRaFZxcaGx2wSKi22USoaTl+yHNmnHM=; b=Eql0E4VTqmep3ilmA9/gvNbO7C9LKsS0ZTEZKgwuxzWUCFXhS2aSpqLa7A58BSxhzg PjxXH5MiA2Pab+TIIA0x3AGvZYJvSSIqSfI9mAkVbYd+blAX6HpVgf1g06d1snVVQ0OD CNZS/cAu5xppNyGwkoDcVe1biirqbcUmVk2zoJea52dvArsq4bK1w+BgyudoaL2y0aAC idj/WzkvoWD4QyzgWwDmyx634SkptZfu3M35LTm5/z3b4NBZZ5L1J9sYbtkmhYlUHwEG 7Gd3uu7NdCH4MFnLp5HoNahQrHM9TvZbBhdaI/3t/UUTGcVeks4r3iOKq1W7n9YnJMVJ qt/A== ARC-Authentication-Results: i=1; mx.google.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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b27si4535637ede.48.2019.11.08.07.40.39; Fri, 08 Nov 2019 07:41:02 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726804AbfKHPho (ORCPT + 99 others); Fri, 8 Nov 2019 10:37:44 -0500 Received: from gentwo.org ([3.19.106.255]:39006 "EHLO gentwo.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726049AbfKHPho (ORCPT ); Fri, 8 Nov 2019 10:37:44 -0500 Received: by gentwo.org (Postfix, from userid 1002) id 649CF3E89B; Fri, 8 Nov 2019 15:37:43 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by gentwo.org (Postfix) with ESMTP id 637063E89A; Fri, 8 Nov 2019 15:37:43 +0000 (UTC) Date: Fri, 8 Nov 2019 15:37:43 +0000 (UTC) From: Christopher Lameter X-X-Sender: cl@www.lameter.com To: Michal Hocko cc: Knut Omang , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton Subject: Re: [PATCH] mm: provide interface for retrieving kmem_cache name In-Reply-To: <20191107131342.GT8314@dhcp22.suse.cz> Message-ID: References: <20191107115404.3030723-1-knut.omang@oracle.com> <20191107115806.GP8314@dhcp22.suse.cz> <27006f47b0b85fb99acee2a638207268aef8d010.camel@oracle.com> <20191107131342.GT8314@dhcp22.suse.cz> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 7 Nov 2019, Michal Hocko wrote: > On Thu 07-11-19 13:26:09, Knut Omang wrote: > > On Thu, 2019-11-07 at 12:58 +0100, Michal Hocko wrote: > > > On Thu 07-11-19 12:54:04, Knut Omang wrote: > > > > With the restructuring done in commit 9adeaa226988 > > > > ("mm, slab: move memcg_cache_params structure to mm/slab.h") > > > > > > > > it is no longer possible for code external to mm to access That patch only affected the memcg_cache_params structure and not kmem_cache. And I do not see any references to the memcg_cache_param? The fields that all allocators need to expose are listed in the struct kmme_cache definition in linux/mm/slab.h.