kernel-hacking-2024-linux-s.../include
Johannes Weiner 567e9ab2e6 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>
2016-01-20 17:09:18 -08:00
..
acpi
asm-generic dma-mapping: remove <asm-generic/dma-coherent.h> 2016-01-20 17:09:18 -08:00
clocksource
crypto Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security 2016-01-17 19:13:15 -08:00
drm Merge tag 'topic/drm-misc-2016-01-17' of git://anongit.freedesktop.org/drm-intel into drm-next 2016-01-18 07:01:16 +10:00
dt-bindings The clk framework and driver changes for 4.5 look pretty typical. The 2016-01-15 18:21:28 -08:00
keys
kvm
linux mm: memcontrol: give the kmem states more descriptive names 2016-01-20 17:09:18 -08:00
math-emu
media
memory
misc
net mm: memcontrol: drop unused @css argument in memcg_init_kmem 2016-01-20 17:09:18 -08:00
pcmcia
ras
rdma
rxrpc
scsi
soc
sound
target
trace Merge branch 'for-linus-4.5' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs 2016-01-18 12:44:40 -08:00
uapi epoll: add EPOLLEXCLUSIVE flag 2016-01-20 17:09:18 -08:00
video
xen virtio: barrier rework+fixes 2016-01-18 16:44:24 -08:00
Kbuild