Re: [PATCH 1/2 v3] memcg: refactor mem_control_numa_stat_show()

2013-09-15 Thread Johannes Weiner
Hi Greg, On Wed, Sep 04, 2013 at 11:28:58PM -0700, Greg Thelen wrote: > + struct numa_stat { > + const char *name; > + unsigned int lru_mask; > + }; > + > + static const struct numa_stat stats[] = { > + { "total", LRU_ALL }, > + {

Re: [PATCH 1/2 v3] memcg: refactor mem_control_numa_stat_show()

2013-09-15 Thread Johannes Weiner
Hi Greg, On Wed, Sep 04, 2013 at 11:28:58PM -0700, Greg Thelen wrote: + struct numa_stat { + const char *name; + unsigned int lru_mask; + }; + + static const struct numa_stat stats[] = { + { total, LRU_ALL }, + { file,

[PATCH 1/2 v3] memcg: refactor mem_control_numa_stat_show()

2013-09-05 Thread Greg Thelen
Refactor mem_control_numa_stat_show() to use a new stats structure for smaller and simpler code. This consolidates nearly identical code. text data bssdec hex filename 8,055,980 1,675,648 1,896,448 11,628,076 b16e2c vmlinux.before 8,055,276 1,675,648 1,896,448

[PATCH 1/2 v3] memcg: refactor mem_control_numa_stat_show()

2013-09-05 Thread Greg Thelen
Refactor mem_control_numa_stat_show() to use a new stats structure for smaller and simpler code. This consolidates nearly identical code. text data bssdec hex filename 8,055,980 1,675,648 1,896,448 11,628,076 b16e2c vmlinux.before 8,055,276 1,675,648 1,896,448