aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/memcontrol.h10
-rw-r--r--mm/memcontrol.c6
-rw-r--r--mm/vmscan.c2
3 files changed, 9 insertions, 9 deletions
diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h
index 16052117131e..ac1e5d20916a 100644
--- a/include/linux/memcontrol.h
+++ b/include/linux/memcontrol.h
@@ -107,9 +107,9 @@ extern void mem_cgroup_end_migration(struct mem_cgroup *mem,
107int mem_cgroup_inactive_anon_is_low(struct mem_cgroup *memcg); 107int mem_cgroup_inactive_anon_is_low(struct mem_cgroup *memcg);
108int mem_cgroup_inactive_file_is_low(struct mem_cgroup *memcg); 108int mem_cgroup_inactive_file_is_low(struct mem_cgroup *memcg);
109int mem_cgroup_select_victim_node(struct mem_cgroup *memcg); 109int mem_cgroup_select_victim_node(struct mem_cgroup *memcg);
110unsigned long mem_cgroup_zone_nr_pages(struct mem_cgroup *memcg, 110unsigned long mem_cgroup_zone_nr_lru_pages(struct mem_cgroup *memcg,
111 struct zone *zone, 111 struct zone *zone,
112 enum lru_list lru); 112 enum lru_list lru);
113struct zone_reclaim_stat *mem_cgroup_get_reclaim_stat(struct mem_cgroup *memcg, 113struct zone_reclaim_stat *mem_cgroup_get_reclaim_stat(struct mem_cgroup *memcg,
114 struct zone *zone); 114 struct zone *zone);
115struct zone_reclaim_stat* 115struct zone_reclaim_stat*
@@ -304,8 +304,8 @@ mem_cgroup_inactive_file_is_low(struct mem_cgroup *memcg)
304} 304}
305 305
306static inline unsigned long 306static inline unsigned long
307mem_cgroup_zone_nr_pages(struct mem_cgroup *memcg, struct zone *zone, 307mem_cgroup_zone_nr_lru_pages(struct mem_cgroup *memcg, struct zone *zone,
308 enum lru_list lru) 308 enum lru_list lru)
309{ 309{
310 return 0; 310 return 0;
311} 311}
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index bcb0a0bee1fc..cc48a6854f7e 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -1078,9 +1078,9 @@ int mem_cgroup_inactive_file_is_low(struct mem_cgroup *memcg)
1078 return (active > inactive); 1078 return (active > inactive);
1079} 1079}
1080 1080
1081unsigned long mem_cgroup_zone_nr_pages(struct mem_cgroup *memcg, 1081unsigned long mem_cgroup_zone_nr_lru_pages(struct mem_cgroup *memcg,
1082 struct zone *zone, 1082 struct zone *zone,
1083 enum lru_list lru) 1083 enum lru_list lru)
1084{ 1084{
1085 int nid = zone_to_nid(zone); 1085 int nid = zone_to_nid(zone);
1086 int zid = zone_idx(zone); 1086 int zid = zone_idx(zone);
diff --git a/mm/vmscan.c b/mm/vmscan.c
index 2e8fbacd8744..faa0a088f9cc 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -173,7 +173,7 @@ static unsigned long zone_nr_lru_pages(struct zone *zone,
173 struct scan_control *sc, enum lru_list lru) 173 struct scan_control *sc, enum lru_list lru)
174{ 174{
175 if (!scanning_global_lru(sc)) 175 if (!scanning_global_lru(sc))
176 return mem_cgroup_zone_nr_pages(sc->mem_cgroup, zone, lru); 176 return mem_cgroup_zone_nr_lru_pages(sc->mem_cgroup, zone, lru);
177 177
178 return zone_page_state(zone, NR_LRU_BASE + lru); 178 return zone_page_state(zone, NR_LRU_BASE + lru);
179} 179}