]> git.karo-electronics.de Git - karo-tx-linux.git/commit
memcg: refactor mem_control_numa_stat_show()
authorGreg Thelen <gthelen@google.com>
Tue, 5 Nov 2013 05:55:37 +0000 (16:55 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 5 Nov 2013 05:55:37 +0000 (16:55 +1100)
commitacf27d8bdec7f677357d62f753347367917ee1e2
tree0f95bf96728ba6123e4c641905e674df5213f5c9
parent59a893de1c5f701af5a3e3ce46750bdc68fcad96
memcg: refactor mem_control_numa_stat_show()

Refactor mem_control_numa_stat_show() to use a new stats structure for
smaller and simpler code.  This consolidates nearly identical code.

  text      data      bss        dec      hex   filename
8,137,679 1,703,496 1,896,448 11,737,623 b31a17 vmlinux.before
8,136,911 1,703,496 1,896,448 11,736,855 b31717 vmlinux.after

Signed-off-by: Greg Thelen <gthelen@google.com>
Signed-off-by: Ying Han <yinghan@google.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memcontrol.c