Messages in this thread | | | Date | Tue, 21 Feb 2012 17:08:07 +0900 | From | KAMEZAWA Hiroyuki <> | Subject | Re: [PATCH 3/10] mm/memcg: add zone pointer into lruvec |
| |
On Mon, 20 Feb 2012 15:30:45 -0800 (PST) Hugh Dickins <hughd@google.com> 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@google.com> > ---
I like this cleanup
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
| |