Re: [RFC PATCH] mm/vmscan: remove two un-needed mem_cgroup_page_lruvec() call

2014-02-15 Thread Hugh Dickins
On Sun, 16 Feb 2014, Weijie Yang wrote: > On Sun, Feb 16, 2014 at 12:00 PM, Hugh Dickins wrote: > > On Sun, 16 Feb 2014, Weijie Yang wrote: > > > >> In putback_inactive_pages() and move_active_pages_to_lru(), > >> lruvec is already an input parameter and pages are all from this lruvec, > >> theref

Re: [RFC PATCH] mm/vmscan: remove two un-needed mem_cgroup_page_lruvec() call

2014-02-15 Thread Weijie Yang
On Sun, Feb 16, 2014 at 12:00 PM, Hugh Dickins wrote: > On Sun, 16 Feb 2014, Weijie Yang wrote: > >> In putback_inactive_pages() and move_active_pages_to_lru(), >> lruvec is already an input parameter and pages are all from this lruvec, >> therefore there is no need to call mem_cgroup_page_lruvec(

Re: [RFC PATCH] mm/vmscan: remove two un-needed mem_cgroup_page_lruvec() call

2014-02-15 Thread Hugh Dickins
On Sun, 16 Feb 2014, Weijie Yang wrote: > In putback_inactive_pages() and move_active_pages_to_lru(), > lruvec is already an input parameter and pages are all from this lruvec, > therefore there is no need to call mem_cgroup_page_lruvec() in loop. > > Signed-off-by: Weijie Yang Looks plausible