Re: [PATCH 3/10] mm/memcg: add zone pointer into lruvec

From: KAMEZAWA Hiroyuki
Date: Tue Feb 21 2012 - 03:09:33 EST


On Mon, 20 Feb 2012 15:30:45 -0800 (PST)
Hugh Dickins <hughd@xxxxxxxxxx> wrote:

> The lruvec is looking rather useful: if we just add a zone pointer
> into the lruvec, then we can pass the lruvec pointer around and save
> some superfluous arguments and recomputations in various places.
>
> Just occasionally we do want mem_cgroup_from_lruvec() to get back from
> lruvec to memcg; but then we can remove all uses of vmscan.c's private
> mem_cgroup_zone *mz, passing the lruvec pointer instead.
>
> And while we're there, get_scan_count() can call vmscan_swappiness()
> once, instead of twice in a row.
>
> Signed-off-by: Hugh Dickins <hughd@xxxxxxxxxx>
> ---

I like this cleanup

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/