aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/memcontrol.h
diff options
context:
space:
mode:
authorHugh Dickins <hughd@google.com>2012-05-29 18:07:08 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2012-05-29 19:22:28 -0400
commit4d7dcca213921fbaf08ee05359d28e4aaf2245f1 (patch)
tree1c31ea8e8f9f88ca60864fbdaf9dfa74b09be96f /include/linux/memcontrol.h
parentaf7c4b0ec257ea9abb9c6749dd5a5ba0b8fae1fd (diff)
mm/memcg: get_lru_size not get_lruvec_size
Konstantin just introduced mem_cgroup_get_lruvec_size() and get_lruvec_size(), I'm about to add mem_cgroup_update_lru_size(): but we're dealing with the same thing, lru_size[lru]. We ought to agree on the naming, and I do think lru_size is the more correct: so rename his ones to get_lru_size(). Signed-off-by: Hugh Dickins <hughd@google.com> Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Acked-by: Konstantin Khlebnikov <khlebnikov@openvz.org> Acked-by: Michal Hocko <mhocko@suse.cz> Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Cc: Johannes Weiner <hannes@cmpxchg.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/memcontrol.h')
-rw-r--r--include/linux/memcontrol.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h
index fc81dc244309..609ef7c28c6c 100644
--- a/include/linux/memcontrol.h
+++ b/include/linux/memcontrol.h
@@ -121,7 +121,7 @@ void mem_cgroup_iter_break(struct mem_cgroup *, struct mem_cgroup *);
121int mem_cgroup_inactive_anon_is_low(struct lruvec *lruvec); 121int mem_cgroup_inactive_anon_is_low(struct lruvec *lruvec);
122int mem_cgroup_inactive_file_is_low(struct lruvec *lruvec); 122int mem_cgroup_inactive_file_is_low(struct lruvec *lruvec);
123int mem_cgroup_select_victim_node(struct mem_cgroup *memcg); 123int mem_cgroup_select_victim_node(struct mem_cgroup *memcg);
124unsigned long mem_cgroup_get_lruvec_size(struct lruvec *lruvec, enum lru_list); 124unsigned long mem_cgroup_get_lru_size(struct lruvec *lruvec, enum lru_list);
125struct zone_reclaim_stat* 125struct zone_reclaim_stat*
126mem_cgroup_get_reclaim_stat_from_page(struct page *page); 126mem_cgroup_get_reclaim_stat_from_page(struct page *page);
127extern void mem_cgroup_print_oom_info(struct mem_cgroup *memcg, 127extern void mem_cgroup_print_oom_info(struct mem_cgroup *memcg,
@@ -340,7 +340,7 @@ mem_cgroup_inactive_file_is_low(struct lruvec *lruvec)
340} 340}
341 341
342static inline unsigned long 342static inline unsigned long
343mem_cgroup_get_lruvec_size(struct lruvec *lruvec, enum lru_list lru) 343mem_cgroup_get_lru_size(struct lruvec *lruvec, enum lru_list lru)
344{ 344{
345 return 0; 345 return 0;
346} 346}