diff options
author | KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> | 2009-01-07 21:08:21 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-08 11:31:08 -0500 |
commit | 9439c1c95b5c25b8031b2a7eb7e1590eb84be7f5 (patch) | |
tree | 79eaae56278407e0a223e562a2d0079834ca5529 /include/linux/memcontrol.h | |
parent | 3e2f41f1f64744f7942980d93cc93dd3e5924560 (diff) |
memcg: remove mem_cgroup_cal_reclaim()
Now, get_scan_ratio() return correct value although memcg reclaim. Then,
mem_cgroup_calc_reclaim() can be removed.
So, memcg reclaim get the same capability of anon/file reclaim balancing
as global reclaim now.
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@redhat.com>
Acked-by: Rik van Riel <riel@redhat.com>
Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Balbir Singh <balbir@in.ibm.com>
Cc: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
Cc: Hugh Dickins <hugh@veritas.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
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.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h index 36b8ebb39b82..8752052da8df 100644 --- a/include/linux/memcontrol.h +++ b/include/linux/memcontrol.h | |||
@@ -97,9 +97,6 @@ extern void mem_cgroup_note_reclaim_priority(struct mem_cgroup *mem, | |||
97 | int priority); | 97 | int priority); |
98 | extern void mem_cgroup_record_reclaim_priority(struct mem_cgroup *mem, | 98 | extern void mem_cgroup_record_reclaim_priority(struct mem_cgroup *mem, |
99 | int priority); | 99 | int priority); |
100 | |||
101 | extern long mem_cgroup_calc_reclaim(struct mem_cgroup *mem, struct zone *zone, | ||
102 | int priority, enum lru_list lru); | ||
103 | int mem_cgroup_inactive_anon_is_low(struct mem_cgroup *memcg, | 100 | int mem_cgroup_inactive_anon_is_low(struct mem_cgroup *memcg, |
104 | struct zone *zone); | 101 | struct zone *zone); |
105 | unsigned long mem_cgroup_zone_nr_pages(struct mem_cgroup *memcg, | 102 | unsigned long mem_cgroup_zone_nr_pages(struct mem_cgroup *memcg, |
@@ -244,13 +241,6 @@ static inline void mem_cgroup_record_reclaim_priority(struct mem_cgroup *mem, | |||
244 | { | 241 | { |
245 | } | 242 | } |
246 | 243 | ||
247 | static inline long mem_cgroup_calc_reclaim(struct mem_cgroup *mem, | ||
248 | struct zone *zone, int priority, | ||
249 | enum lru_list lru) | ||
250 | { | ||
251 | return 0; | ||
252 | } | ||
253 | |||
254 | static inline bool mem_cgroup_disabled(void) | 244 | static inline bool mem_cgroup_disabled(void) |
255 | { | 245 | { |
256 | return true; | 246 | return true; |