Re: [patch 4/5] memcg: condense page_cgroup-to-page lookup points
From: KAMEZAWA Hiroyuki
Date: Thu Feb 03 2011 - 19:17:12 EST
On Thu, 3 Feb 2011 15:26:05 +0100
Johannes Weiner <hannes@xxxxxxxxxxx> 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@xxxxxxxxxxx>
Maybe good.
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/