[PATCH v3 03/11] memcg: create extensible page stat update routines

Daisuke Nishimura nishimura at mxp.nes.nec.co.jp
Mon Oct 18 21:52:30 PDT 2010


On Mon, 18 Oct 2010 17:39:36 -0700
Greg Thelen <gthelen at google.com> wrote:

> Replace usage of the mem_cgroup_update_file_mapped() memcg
> statistic update routine with two new routines:
> * mem_cgroup_inc_page_stat()
> * mem_cgroup_dec_page_stat()
> 
> As before, only the file_mapped statistic is managed.  However,
> these more general interfaces allow for new statistics to be
> more easily added.  New statistics are added with memcg dirty
> page accounting.
> 
> Signed-off-by: Greg Thelen <gthelen at google.com>
> Signed-off-by: Andrea Righi <arighi at develer.com>

Acked-by: Daisuke Nishimura <nishimura at mxp.nes.nec.co.jp>


More information about the Containers mailing list