summaryrefslogtreecommitdiff
path: root/mm/mlock.c
diff options
context:
space:
mode:
authorJohannes Weiner <hannes@cmpxchg.org>2011-03-23 16:42:37 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2011-03-23 19:46:31 -0700
commite9f8974f2f559b00c87ccfba67bca3903f913d50 (patch)
treed19f8f7d15eb56e7af98c7ad63db8e86d5873fff /mm/mlock.c
parent7ec99d6213b579a84c85ad37f2aa8ded4857c53c (diff)
downloadlinux-3.10-e9f8974f2f559b00c87ccfba67bca3903f913d50.tar.gz
linux-3.10-e9f8974f2f559b00c87ccfba67bca3903f913d50.tar.bz2
linux-3.10-e9f8974f2f559b00c87ccfba67bca3903f913d50.zip
memcg: break out event counters from other stats
For increasing and decreasing per-cpu cgroup usage counters it makes sense to use signed types, as single per-cpu values might go negative during updates. But this is not the case for only-ever-increasing event counters. All the counters have been signed 64-bit so far, which was enough to count events even with the sign bit wasted. This patch: - divides s64 counters into signed usage counters and unsigned monotonically increasing event counters. - converts unsigned event counters into 'unsigned long' rather than 'u64'. This matches the type used by the /proc/vmstat event counters. The next patch narrows the signed usage counters type (on 32-bit CPUs, that is). Signed-off-by: Johannes Weiner <hannes@cmpxchg.org> Signed-off-by: Greg Thelen <gthelen@google.com> Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Acked-by: Balbir Singh <balbir@linux.vnet.ibm.com> Cc: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/mlock.c')
0 files changed, 0 insertions, 0 deletions