diff options
author | Vladimir Davydov | 2015-02-12 23:59:29 +0100 |
---|---|---|
committer | Linus Torvalds | 2015-02-13 03:54:09 +0100 |
commit | f1008365bbe4931d6a94dcfc11cf4cdada359664 (patch) | |
tree | b82f2b1fcb57d1680b8f5c223c41a98fee4c96ce /mm/memcontrol.c | |
parent | cgroup: release css->id after css_free (diff) | |
download | kernel-qcow2-linux-f1008365bbe4931d6a94dcfc11cf4cdada359664.tar.gz kernel-qcow2-linux-f1008365bbe4931d6a94dcfc11cf4cdada359664.tar.xz kernel-qcow2-linux-f1008365bbe4931d6a94dcfc11cf4cdada359664.zip |
slab: use css id for naming per memcg caches
Currently, we use mem_cgroup->kmemcg_id to guarantee kmem_cache->name
uniqueness. This is correct, because kmemcg_id is only released on css
free after destroying all per memcg caches.
However, I am going to change that and release kmemcg_id on css offline,
because it is not wise to keep it for so long, wasting valuable entries of
memcg_cache_params->memcg_caches arrays. Therefore, to preserve cache
name uniqueness, let us switch to css->id.
Signed-off-by: Vladimir Davydov <vdavydov@parallels.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Tejun Heo <tj@kernel.org>
Cc: Christoph Lameter <cl@linux.com>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: David Rientjes <rientjes@google.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: Dave Chinner <david@fromorbit.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/memcontrol.c')
0 files changed, 0 insertions, 0 deletions