]> git.baikalelectronics.ru Git - kernel.git/commit
memcg: do not open code accesses to res_counter members
authorGlauber Costa <glommer@parallels.com>
Thu, 12 Apr 2012 19:49:13 +0000 (12:49 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 12 Apr 2012 20:12:12 +0000 (13:12 -0700)
commit3bb22eab0097f0c3c8c11cd6c1dfd053d3396674
treee9f4f9a04a9a8f2a94a919aff55629f8946b30f4
parentef123a9631d5211278b1190f2ca8af1fe26e8c34
memcg: do not open code accesses to res_counter members

We should use the accessor res_counter_read_u64 for that.

Although a purely cosmetic change is sometimes better delayed, to avoid
conflicting with other people's work, we are starting to have people
touching this code as well, and reproducing the open code behavior
because that's the standard =)

Time to fix it, then.

Signed-off-by: Glauber Costa <glommer@parallels.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Michal Hocko <mhocko@suse.cz>
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>
mm/memcontrol.c