Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1287228

Re: [PATCH 3/8] mm: memcontrol: give the kmem states more descriptive names

From Vladimir Davydov <vdavydov@virtuozzo.com>
Newsgroups linux.kernel
Subject Re: [PATCH 3/8] mm: memcontrol: give the kmem states more descriptive names
Date 2015-12-09 10:20 +0100
Message-ID <qDJ4K-6qQ-17@gated-at.bofh.it> (permalink)
References <qDvl8-5U7-11@gated-at.bofh.it> <qDvl8-5U7-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, Dec 08, 2015 at 01:34:20PM -0500, Johannes Weiner wrote:
> 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: Vladimir Davydov <vdavydov@virtuozzo.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 3/8] mm: memcontrol: give the kmem states more descriptive names Johannes Weiner <hannes@cmpxchg.org> - 2015-12-08 19:40 +0100
  Re: [PATCH 3/8] mm: memcontrol: give the kmem states more  descriptive names Vladimir Davydov <vdavydov@virtuozzo.com> - 2015-12-09 10:20 +0100
  Re: [PATCH 3/8] mm: memcontrol: give the kmem states more  descriptive names Michal Hocko <mhocko@kernel.org> - 2015-12-10 13:50 +0100

csiph-web