|
@@ -1700,18 +1700,20 @@ static void get_scan_count(struct lruvec *lruvec, struct scan_control *sc,
|
|
|
fraction[1] = 0;
|
|
|
denominator = 1;
|
|
|
goto out;
|
|
|
- } else if (!inactive_file_is_low_global(zone)) {
|
|
|
- /*
|
|
|
- * There is enough inactive page cache, do not
|
|
|
- * reclaim anything from the working set right now.
|
|
|
- */
|
|
|
- fraction[0] = 0;
|
|
|
- fraction[1] = 1;
|
|
|
- denominator = 1;
|
|
|
- goto out;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ /*
|
|
|
+ * There is enough inactive page cache, do not reclaim
|
|
|
+ * anything from the anonymous working set right now.
|
|
|
+ */
|
|
|
+ if (!inactive_file_is_low(lruvec)) {
|
|
|
+ fraction[0] = 0;
|
|
|
+ fraction[1] = 1;
|
|
|
+ denominator = 1;
|
|
|
+ goto out;
|
|
|
+ }
|
|
|
+
|
|
|
/*
|
|
|
* With swappiness at 100, anonymous and file have the same priority.
|
|
|
* This scanning priority is essentially the inverse of IO cost.
|