]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mm: memcontrol: eliminate root memory.current
authorJohannes Weiner <hannes@cmpxchg.org>
Fri, 6 Nov 2015 02:50:23 +0000 (18:50 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 6 Nov 2015 03:34:48 +0000 (19:34 -0800)
commitf5fc3c5d817435970aa301d066820a9ac12c8120
tree7b0d1d981ca5308c47eef73050e7f81feca43f0e
parente0ec90ee7e6f6cbaa6d59ffb48d2a7af5e80e61d
mm: memcontrol: eliminate root memory.current

memory.current on the root level doesn't add anything that wouldn't be
more accurate and detailed using system statistics.  It already doesn't
include slabs, and it'll be a pain to keep in sync when further memory
types are accounted in the memory controller.  Remove it.

Note that this applies to the new unified hierarchy interface only.

Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memcontrol.c