]> git.baikalelectronics.ru Git - kernel.git/commit
memcg: change page_cgroup_zoneinfo signature
authorJohannes Weiner <hannes@cmpxchg.org>
Wed, 23 Mar 2011 23:42:27 +0000 (16:42 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 24 Mar 2011 02:46:26 +0000 (19:46 -0700)
commit1dacaa7c0a483ce5c18fc58f3e61ab2e16602769
tree6135189ba1f589d7a3b10c5e24da9a42ea9036f5
parente7a20d211d4a184e6e14e8658d4deff4e8c59949
memcg: change page_cgroup_zoneinfo signature

Instead of passing a whole struct page_cgroup to this function, let it
take only what it really needs from it: the struct mem_cgroup and the
page.

This has the advantage that reading pc->mem_cgroup is now done at the same
place where the ordering rules for this pointer are enforced and
explained.

It is also in preparation for removing the pc->page backpointer.

Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
Cc: Balbir Singh <balbir@linux.vnet.ibm.com>
Cc: Minchan Kim <minchan.kim@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/page_cgroup.h
mm/memcontrol.c