summaryrefslogtreecommitdiff
path: root/mm/vmscan.c
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2017-02-21 05:33:44 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2017-02-21 05:33:44 -0800
commitd7f04520658a04985c012c8cf4ac13564e22d3fe (patch)
treef433adecf7c6cc87950e2b367b161e69fcdbcf99 /mm/vmscan.c
parente236c2f038920fe638f6623b50a59c48ea7297fa (diff)
parentd7e25d639050fc0aa579dc49d420cda5b15983ff (diff)
Merge "mm, kswapd: remove bogus check of balance_classzone_idx"
Diffstat (limited to 'mm/vmscan.c')
-rw-r--r--mm/vmscan.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c
index f55275d21a97..03f91ee3c71a 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -3570,8 +3570,7 @@ static int kswapd(void *p)
* new request of a similar or harder type will succeed soon
* so consider going to sleep on the basis we reclaimed at
*/
- if (balanced_classzone_idx >= new_classzone_idx &&
- balanced_order == new_order) {
+ if (balanced_order == new_order) {
new_order = pgdat->kswapd_max_order;
new_classzone_idx = pgdat->classzone_idx;
pgdat->kswapd_max_order = 0;