aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorHugh Dickins <hughd@google.com>2012-03-21 19:34:19 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2012-03-21 20:55:00 -0400
commitf156ab9333c7810f8c4b1a0413142f52534b2df1 (patch)
treec456db15734c575223be69c57328e140cc4b489f /mm
parent1eb4927251a4e5ab152e64afb29453547365fde8 (diff)
memcg: enum lru_list lru
Mostly we use "enum lru_list lru": change those few "l"s to "lru"s. Signed-off-by: Hugh Dickins <hughd@google.com> Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Acked-by: Kirill A. Shutemov <kirill@shutemov.name> Acked-by: Michal Hocko <mhocko@suse.cz> Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/memcontrol.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 6405e78e26e7..7572a5089d63 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -719,14 +719,14 @@ mem_cgroup_zone_nr_lru_pages(struct mem_cgroup *memcg, int nid, int zid,
719 unsigned int lru_mask) 719 unsigned int lru_mask)
720{ 720{
721 struct mem_cgroup_per_zone *mz; 721 struct mem_cgroup_per_zone *mz;
722 enum lru_list l; 722 enum lru_list lru;
723 unsigned long ret = 0; 723 unsigned long ret = 0;
724 724
725 mz = mem_cgroup_zoneinfo(memcg, nid, zid); 725 mz = mem_cgroup_zoneinfo(memcg, nid, zid);
726 726
727 for_each_lru(l) { 727 for_each_lru(lru) {
728 if (BIT(l) & lru_mask) 728 if (BIT(lru) & lru_mask)
729 ret += mz->lru_size[l]; 729 ret += mz->lru_size[lru];
730 } 730 }
731 return ret; 731 return ret;
732} 732}
@@ -3701,10 +3701,10 @@ move_account:
3701 mem_cgroup_start_move(memcg); 3701 mem_cgroup_start_move(memcg);
3702 for_each_node_state(node, N_HIGH_MEMORY) { 3702 for_each_node_state(node, N_HIGH_MEMORY) {
3703 for (zid = 0; !ret && zid < MAX_NR_ZONES; zid++) { 3703 for (zid = 0; !ret && zid < MAX_NR_ZONES; zid++) {
3704 enum lru_list l; 3704 enum lru_list lru;
3705 for_each_lru(l) { 3705 for_each_lru(lru) {
3706 ret = mem_cgroup_force_empty_list(memcg, 3706 ret = mem_cgroup_force_empty_list(memcg,
3707 node, zid, l); 3707 node, zid, lru);
3708 if (ret) 3708 if (ret)
3709 break; 3709 break;
3710 } 3710 }
@@ -4734,7 +4734,7 @@ static int alloc_mem_cgroup_per_zone_info(struct mem_cgroup *memcg, int node)
4734{ 4734{
4735 struct mem_cgroup_per_node *pn; 4735 struct mem_cgroup_per_node *pn;
4736 struct mem_cgroup_per_zone *mz; 4736 struct mem_cgroup_per_zone *mz;
4737 enum lru_list l; 4737 enum lru_list lru;
4738 int zone, tmp = node; 4738 int zone, tmp = node;
4739 /* 4739 /*
4740 * This routine is called against possible nodes. 4740 * This routine is called against possible nodes.
@@ -4752,8 +4752,8 @@ static int alloc_mem_cgroup_per_zone_info(struct mem_cgroup *memcg, int node)
4752 4752
4753 for (zone = 0; zone < MAX_NR_ZONES; zone++) { 4753 for (zone = 0; zone < MAX_NR_ZONES; zone++) {
4754 mz = &pn->zoneinfo[zone]; 4754 mz = &pn->zoneinfo[zone];
4755 for_each_lru(l) 4755 for_each_lru(lru)
4756 INIT_LIST_HEAD(&mz->lruvec.lists[l]); 4756 INIT_LIST_HEAD(&mz->lruvec.lists[lru]);
4757 mz->usage_in_excess = 0; 4757 mz->usage_in_excess = 0;
4758 mz->on_tree = false; 4758 mz->on_tree = false;
4759 mz->memcg = memcg; 4759 mz->memcg = memcg;