diff --git a/mm/vmscan.c b/mm/vmscan.c index 0eae0aa9df12e30f94b5eb918d56e49c9ab9929d..29a6a825629e70652119de864d3b3f0b1b911d7a 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -2427,10 +2427,8 @@ static void get_scan_count(struct lruvec *lruvec, struct scan_control *sc, case SCAN_FILE: case SCAN_ANON: /* Scan one type exclusively */ - if ((scan_balance == SCAN_FILE) != file) { - lruvec_size = 0; + if ((scan_balance == SCAN_FILE) != file) scan = 0; - } break; default: /* Look ma, no brain */