]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: memcg: remove unused node/section info from pc->flags
authorJohannes Weiner <jweiner@redhat.com>
Thu, 8 Dec 2011 04:42:43 +0000 (15:42 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 15 Dec 2011 07:35:30 +0000 (18:35 +1100)
commit332238cc2f305206d9c4c60828953f351361aa6a
treec337236e89cd4da2b9aa0b158c600da531d7d1e6
parentcc29d949c03f20c9c74c05525330ad708b576952
mm: memcg: remove unused node/section info from pc->flags

To find the page corresponding to a certain page_cgroup, the pc->flags
encoded the node or section ID with the base array to compare the pc
pointer to.

Now that the per-memory cgroup LRU lists link page descriptors directly,
there is no longer any code that knows the struct page_cgroup of a PFN but
not the struct page.

Signed-off-by: Johannes Weiner <jweiner@redhat.com>
Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Reviewed-by: Michal Hocko <mhocko@suse.cz>
Reviewed-by: Kirill A. Shutemov <kirill@shutemov.name>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: "Kirill A. Shutemov" <kirill@shutemov.name>
Cc: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
Cc: Balbir Singh <bsingharora@gmail.com>
Cc: Ying Han <yinghan@google.com>
Cc: Greg Thelen <gthelen@google.com>
Cc: Michel Lespinasse <walken@google.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Minchan Kim <minchan.kim@gmail.com>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/page_cgroup.h
mm/page_cgroup.c