Messages in this thread | | | Date | Fri, 4 Feb 2011 09:10:58 +0900 | From | KAMEZAWA Hiroyuki <> | Subject | Re: [patch 4/5] memcg: condense page_cgroup-to-page lookup points |
| |
On Thu, 3 Feb 2011 15:26:05 +0100 Johannes Weiner <hannes@cmpxchg.org> wrote:
> The per-cgroup LRU lists string up 'struct page_cgroup's. To get from > those structures to the page they represent, a lookup is required. > Currently, the lookup is done through a direct pointer in struct > page_cgroup, so a lot of functions down the callchain do this lookup > by themselves instead of receiving the page pointer from their > callers. > > The next patch removes this pointer, however, and the lookup is no > longer that straight-forward. In preparation for that, this patch > only leaves the non-optional lookups when coming directly from the LRU > list and passes the page down the stack. > > Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Maybe good.
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
| |