lkml.org 
[lkml]   [2013]   [Mar]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] memcg: fix memcg_cache_name() to use cgroup_name()
On Tue 26-03-13 15:52:32, Li Zefan wrote:
[...]
> ...
> > static struct kmem_cache *kmem_cache_dup(struct mem_cgroup *memcg,
> > struct kmem_cache *s)
> > {
> > - char *name;
> > struct kmem_cache *new;
> > + static char *tmp_name = NULL;
>
> (minor nitpick) why not preserve the name "name"

I wanted to make it clear that the name is just temporal

--
Michal Hocko
SUSE Labs


\
 
 \ /
  Last update: 2013-03-26 09:41    [W:1.295 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site