]> git.baikalelectronics.ru Git - kernel.git/commit
memcg: use native word page statistics counters
authorJohannes Weiner <hannes@cmpxchg.org>
Wed, 23 Mar 2011 23:42:38 +0000 (16:42 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 24 Mar 2011 02:46:31 +0000 (19:46 -0700)
commitcdd4d4e5c556c30000277ec29f9e9a642f4bbc6e
tree027e8468d40bfdb51ad9694ec1d5256bb2fdb36f
parent12f7e9319eccf31468c2cc1811875bc0b2a3ca61
memcg: use native word page statistics counters

The statistic counters are in units of pages, there is no reason to make
them 64-bit wide on 32-bit machines.

Make them native words.  Since they are signed, this leaves 31 bit on
32-bit machines, which can represent roughly 8TB assuming a page size of
4k.

[akpm@linux-foundation.org: coding-style fixes]
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>
mm/memcontrol.c