]> git.baikalelectronics.ru Git - kernel.git/commit
memcg: memcg_kmem_create_cache: make memcg_name_buf statically allocated
authorVladimir Davydov <vdavydov@parallels.com>
Wed, 4 Jun 2014 23:08:24 +0000 (16:08 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 4 Jun 2014 23:54:06 +0000 (16:54 -0700)
commit199f74a5b62eda9a1aaf06a7e25926eeb9112e94
tree5f4ea6696209c424e58f1a4e7b6f1a695248a9ee
parentd8a7fe11577b049001120ef741210339f51d913f
memcg: memcg_kmem_create_cache: make memcg_name_buf statically allocated

It isn't worth complicating the code by allocating it on the first access,
because it only takes 256 bytes.

Signed-off-by: Vladimir Davydov <vdavydov@parallels.com>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memcontrol.c