lkml.org 
[lkml]   [2012]   [Jul]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 6/7] memcg: add per cgroup writeback pages accounting
    > @@ -2245,7 +2252,10 @@ int test_set_page_writeback(struct page *page)
    > {
    > struct address_space *mapping = page_mapping(page);
    > int ret;
    > + bool locked;
    > + unsigned long flags;
    >
    > + mem_cgroup_begin_update_page_stat(page, &locked, &flags);
    > if (mapping) {
    > struct backing_dev_info *bdi = mapping->backing_dev_info;
    > unsigned long flags;
    > @@ -2272,6 +2282,8 @@ int test_set_page_writeback(struct page *page)
    > }
    > if (!ret)
    > account_page_writeback(page);
    > +
    > + mem_cgroup_end_update_page_stat(page, &locked, &flags);
    > return ret;
    >
    > }

    Where is the MEM_CGROUP_STAT_FILE_WRITEBACK increased?

    Thanks,
    Fengguang


    \
     
     \ /
      Last update: 2012-07-08 17:41    [W:5.921 / U:0.024 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site