]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - include/linux/memcontrol.h
revert "memcg, vmscan: integrate soft reclaim tighter with zone shrinking code"
[karo-tx-linux.git] / include / linux / memcontrol.h
index 6054c9f3a5e81d75f300fa60777bae8a933577a1..ecc82b37c4ccf00fb863ecf6981de19bbccec52a 100644 (file)
@@ -234,7 +234,9 @@ static inline void mem_cgroup_dec_page_stat(struct page *page,
        mem_cgroup_update_page_stat(page, idx, -1);
 }
 
-bool mem_cgroup_soft_reclaim_eligible(struct mem_cgroup *memcg);
+unsigned long mem_cgroup_soft_limit_reclaim(struct zone *zone, int order,
+                                               gfp_t gfp_mask,
+                                               unsigned long *total_scanned);
 
 void __mem_cgroup_count_vm_event(struct mm_struct *mm, enum vm_event_item idx);
 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,
 }
 
 static inline
-bool mem_cgroup_soft_reclaim_eligible(struct mem_cgroup *memcg)
+unsigned long mem_cgroup_soft_limit_reclaim(struct zone *zone, int order,
+                                           gfp_t gfp_mask,
+                                           unsigned long *total_scanned)
 {
-       return false;
+       return 0;
 }
 
 static inline void mem_cgroup_split_huge_fixup(struct page *head)