memcg: zap kmem_account_flags
authorVladimir Davydov <vdavydov@parallels.com>
Sat, 13 Dec 2014 00:55:10 +0000 (16:55 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 13 Dec 2014 20:42:46 +0000 (12:42 -0800)
commit900a38f027b37b55ebe157a0cb31de351b91e4e2
tree147390438f5775f12909dad348b0126c6d27cd70
parentc313dc5dedbc9b51bb7a77959ffbda44712ac2e1
memcg: zap kmem_account_flags

The only such flag is KMEM_ACCOUNTED_ACTIVE, but it's set iff
mem_cgroup->kmemcg_id is initialized, so we can check kmemcg_id instead of
having a separate flags field.

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>
mm/memcontrol.c