diff --git a/mm/vmscan.c b/mm/vmscan.c index 0eae0aa9df12..29a6a825629e 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 */