]> git.baikalelectronics.ru Git - kernel.git/commit
memcg: turn memcg_kmem_skip_account into a bit field
authorVladimir Davydov <vdavydov@parallels.com>
Sat, 13 Dec 2014 00:55:15 +0000 (16:55 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 13 Dec 2014 20:42:47 +0000 (12:42 -0800)
commit3b76e9ca180b3513100bfb9367b973a5dc795710
tree433e23f2887bfb8889314dd8a690b52abda771f3
parentb218abd6ab21b0112899fde8212c1677337c90b4
memcg: turn memcg_kmem_skip_account into a bit field

It isn't supposed to stack, so turn it into a bit-field to save 4 bytes on
the task_struct.

Also, remove the memcg_stop/resume_kmem_account helpers - it is clearer to
set/clear the flag inline.  Regarding the overwhelming comment to the
helpers, which is removed by this patch too, we already have a compact yet
accurate explanation in memcg_schedule_cache_create, no need in yet
another one.

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