diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2013-09-24 18:27:41 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-09-24 20:00:26 -0400 |
commit | 0608f43da64a1f1c42507304b5f25bc8b1227aa4 (patch) | |
tree | 3138a251439bee1f12bd176f41f3fc63e194f455 /include/linux/memcontrol.h | |
parent | bb4cc1a8b5eaf3b9e5707d7c270400b05d11a2b7 (diff) |
revert "memcg, vmscan: integrate soft reclaim tighter with zone shrinking code"
Revert commit 3b38722efd9f ("memcg, vmscan: integrate soft reclaim
tighter with zone shrinking code")
I merged this prematurely - Michal and Johannes still disagree about the
overall design direction and the future remains unclear.
Cc: Michal Hocko <mhocko@suse.cz>
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.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h index 6054c9f3a5e8..ecc82b37c4cc 100644 --- a/include/linux/memcontrol.h +++ b/include/linux/memcontrol.h | |||
@@ -234,7 +234,9 @@ static inline void mem_cgroup_dec_page_stat(struct page *page, | |||
234 | mem_cgroup_update_page_stat(page, idx, -1); | 234 | mem_cgroup_update_page_stat(page, idx, -1); |
235 | } | 235 | } |
236 | 236 | ||
237 | bool mem_cgroup_soft_reclaim_eligible(struct mem_cgroup *memcg); | 237 | unsigned long mem_cgroup_soft_limit_reclaim(struct zone *zone, int order, |
238 | gfp_t gfp_mask, | ||
239 | unsigned long *total_scanned); | ||
238 | 240 | ||
239 | void __mem_cgroup_count_vm_event(struct mm_struct *mm, enum vm_event_item idx); | 241 | void __mem_cgroup_count_vm_event(struct mm_struct *mm, enum vm_event_item idx); |
240 | static inline void mem_cgroup_count_vm_event(struct mm_struct *mm, | 242 | static inline void mem_cgroup_count_vm_event(struct mm_struct *mm, |
@@ -434,9 +436,11 @@ static inline void mem_cgroup_dec_page_stat(struct page *page, | |||
434 | } | 436 | } |
435 | 437 | ||
436 | static inline | 438 | static inline |
437 | bool mem_cgroup_soft_reclaim_eligible(struct mem_cgroup *memcg) | 439 | unsigned long mem_cgroup_soft_limit_reclaim(struct zone *zone, int order, |
440 | gfp_t gfp_mask, | ||
441 | unsigned long *total_scanned) | ||
438 | { | 442 | { |
439 | return false; | 443 | return 0; |
440 | } | 444 | } |
441 | 445 | ||
442 | static inline void mem_cgroup_split_huge_fixup(struct page *head) | 446 | static inline void mem_cgroup_split_huge_fixup(struct page *head) |