summaryrefslogtreecommitdiff
path: root/mm/internal.h
diff options
context:
space:
mode:
authorTim Murray <timmurray@google.com>2016-08-03 18:27:46 -0700
committerMichael Bestas <mkbestas@lineageos.org>2019-12-23 23:43:33 +0200
commitf934d2aabe553a5375721676e107e01512228027 (patch)
treee416ed3ea6003a50f9ad0241fea98a0d2830d41b /mm/internal.h
parentc41564b077479f129fbd3ea8abff8adfb7604b50 (diff)
BACKPORT: mm: fix pageblock heuristic
The Android-tuned page block heuristic was accidentally reset in an AU drop. Fix the heuristic to avoid unnecessary unmovable pageblock migration over time. bug 30643938 Bug: 63336523 (cherry-picked from commit 3e19bcf7d08713daaaba888b4d13502e06e38e96) Change-Id: I59efcd3934f29982b1c9aeb7b0f18eb17e0934b3 Signed-off-by: John Dias <joaodias@google.com>
Diffstat (limited to 'mm/internal.h')
-rw-r--r--mm/internal.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/mm/internal.h b/mm/internal.h
index e17af58d2bf7..c3533af5de8b 100644
--- a/mm/internal.h
+++ b/mm/internal.h
@@ -226,9 +226,9 @@ isolate_freepages_range(struct compact_control *cc,
unsigned long
isolate_migratepages_range(struct compact_control *cc,
unsigned long low_pfn, unsigned long end_pfn);
-int find_suitable_fallback(struct free_area *area, unsigned int order,
- int migratetype, bool only_stealable, bool *can_steal);
-
+int find_suitable_fallback(struct free_area *area, unsigned int current_order,
+ int migratetype, bool only_stealable,
+ int start_order, bool *can_steal);
#endif
/*