diff options
author | Johannes Weiner <hannes@cmpxchg.org> | 2016-01-21 00:02:24 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-01-21 02:09:18 +0100 |
commit | 567e9ab2e614e55feca20e8bcb54b629e9cc1a3b (patch) | |
tree | 4a76642946268e850fdab5b757f9e5bfa2ea07b6 /mm/kmemleak.c | |
parent | mm: memcontrol: remove double kmem page_counter init (diff) | |
download | linux-567e9ab2e614e55feca20e8bcb54b629e9cc1a3b.tar.xz linux-567e9ab2e614e55feca20e8bcb54b629e9cc1a3b.zip |
mm: memcontrol: give the kmem states more descriptive names
On any given memcg, the kmem accounting feature has three separate
states: not initialized, structures allocated, and actively accounting
slab memory. These are represented through a combination of the
kmem_acct_activated and kmem_acct_active flags, which is confusing.
Convert to a kmem_state enum with the states NONE, ALLOCATED, and
ONLINE. Then rename the functions to modify the state accordingly.
This follows the nomenclature of css object states more closely.
Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Tejun Heo <tj@kernel.org>
Acked-by: Vladimir Davydov <vdavydov@virtuozzo.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/kmemleak.c')
0 files changed, 0 insertions, 0 deletions