memcgroup: add the max_usage member on the res_counter
authorPavel Emelyanov <xemul@openvz.org>
Tue, 29 Apr 2008 08:00:17 +0000 (01:00 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 29 Apr 2008 15:06:10 +0000 (08:06 -0700)
commitc84872e168d10926acd2dee975d19172eef79252
treec28f4f87ad38b524fe2a4c1e0e590bea3aacd92a
parentcf475ad28ac35cc9ba612d67158f29b73b38b05d
memcgroup: add the max_usage member on the res_counter

This field is the maximal value of the usage one since the counter creation
(or since the latest reset).

To reset this to the usage value simply write anything to the appropriate
cgroup file.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Acked-by: Balbir Singh <balbir@linux.vnet.ibm.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/res_counter.h
kernel/res_counter.c
mm/memcontrol.c