linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Chengming Zhou <chengming.zhou@linux.dev>
To: Vlastimil Babka <vbabka@suse.cz>,
	Christoph Lameter <cl@linux.com>,
	Pekka Enberg <penberg@kernel.org>,
	David Rientjes <rientjes@google.com>,
	Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	Roman Gushchin <roman.gushchin@linux.dev>,
	Hyeonggon Yoo <42.hyeyoo@gmail.com>,
	linux-mm@kvack.org
Subject: Re: [PATCH] mm, slab: remove memcg_from_slab_obj()
Date: Sat, 2 Mar 2024 13:07:47 +0800	[thread overview]
Message-ID: <48f18693-8598-4f30-a699-3c27545b9b9d@linux.dev> (raw)
In-Reply-To: <20240301160808.10623-2-vbabka@suse.cz>

On 2024/3/2 00:08, Vlastimil Babka wrote:
> This empty wrapped exists only for !CONFIG_MEMCG_KMEM and seems it was
> never used. Probably a leftover from development of a series.
> 
> Signed-off-by: Vlastimil Babka <vbabka@suse.cz>

LGTM, thanks!

Reviewed-by: Chengming Zhou <chengming.zhou@linux.dev>

> ---
>  mm/slub.c | 5 -----
>  1 file changed, 5 deletions(-)
> 
> diff --git a/mm/slub.c b/mm/slub.c
> index 12066e69688d..186a8ec28228 100644
> --- a/mm/slub.c
> +++ b/mm/slub.c
> @@ -2028,11 +2028,6 @@ void memcg_slab_alloc_error_hook(struct kmem_cache *s, int objects,
>  		obj_cgroup_uncharge(objcg, objects * obj_full_size(s));
>  }
>  #else /* CONFIG_MEMCG_KMEM */
> -static inline struct mem_cgroup *memcg_from_slab_obj(void *ptr)
> -{
> -	return NULL;
> -}
> -
>  static inline void memcg_free_slab_cgroups(struct slab *slab)
>  {
>  }


  reply	other threads:[~2024-03-02  5:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-01 16:08 Vlastimil Babka
2024-03-02  5:07 ` Chengming Zhou [this message]
2024-03-02 15:57 ` Roman Gushchin
2024-03-03 22:10 ` David Rientjes

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48f18693-8598-4f30-a699-3c27545b9b9d@linux.dev \
    --to=chengming.zhou@linux.dev \
    --cc=42.hyeyoo@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=cl@linux.com \
    --cc=iamjoonsoo.kim@lge.com \
    --cc=linux-mm@kvack.org \
    --cc=penberg@kernel.org \
    --cc=rientjes@google.com \
    --cc=roman.gushchin@linux.dev \
    --cc=vbabka@suse.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox