lkml.org 
[lkml]   [2007]   [Nov]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH][for -mm] per-zone and reclaim enhancements for memory controller take 3 [3/10] per-zone active inactive counter
    Date
    From
    > @@ -651,10 +758,11 @@
    > /* Avoid race with charge */
    > atomic_set(&pc->ref_cnt, 0);
    > if (clear_page_cgroup(page, pc) == pc) {
    > + int active;
    > css_put(&mem->css);
    > + active = pc->flags & PAGE_CGROUP_FLAG_ACTIVE;
    > res_counter_uncharge(&mem->res, PAGE_SIZE);
    > - list_del_init(&pc->lru);
    > - mem_cgroup_charge_statistics(mem, pc->flags, false);
    > + __mem_cgroup_remove_list(pc);
    > kfree(pc);
    > } else /* being uncharged ? ...do relax */
    > break;

    'active' seems unused.

    YAMAMOTO Takashi
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2007-11-29 04:23    [W:3.245 / U:0.320 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site