[lkml]   [2012]   [Feb]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH 4/10] mm/memcg: apply add/del_page to lruvec
    On Mon, 20 Feb 2012 15:32:06 -0800 (PST)
    Hugh Dickins <> wrote:

    > Go further: pass lruvec instead of zone to add_page_to_lru_list() and
    > del_page_from_lru_list(); and pagevec_lru_move_fn() pass lruvec down
    > to its target functions.
    > This cleanup eliminates a swathe of cruft in memcontrol.c,
    > including mem_cgroup_lru_add_list(), mem_cgroup_lru_del_list() and
    > mem_cgroup_lru_move_lists(), which never actually touched the lists.
    > In their place, mem_cgroup_page_lruvec() to decide the lruvec,
    > previously a side-effect of add, and mem_cgroup_update_lru_size()
    > to maintain the lru_size stats.
    > Whilst these are simplifications in their own right, the goal is to
    > bring the evaluation of lruvec next to the spin_locking of the lrus,
    > in preparation for the next patch.
    > Signed-off-by: Hugh Dickins <>

    Hmm.. a nitpick.

    You do
    lruvec = mem_cgroup_page_lruvec(page, zone);

    What is the difference from

    lruvec = mem_cgroup_page_lruvec(page, page_zone(page))


    If we have a function
    lruvec = mem_cgroup_page_lruvec(page)

    Do we need
    lruvec = mem_cgroup_page_lruvec_zone(page, zone)



     \ /
      Last update: 2012-02-21 09:25    [W:0.022 / U:47.580 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site