Doh! Nice catch...
- if (lru == LRU_ACTIVE_ANON&& inactive_anon_is_low(zone, sc)) {This inactive_file_is_low() should be inactive_anon_is_low().
- shrink_active_list(nr_to_scan, zone, sc, priority, file);
+ if (lru == LRU_ACTIVE_ANON) {
+ if (inactive_file_is_low(zone, sc))
cut-n-paste programming often makes similar mistake. probaby we need make
more cleanup to this function.
How about this? (this is incremental patch from you)
Signed-off-by: KOSAKI Motohiro<kosaki.motohiro@xxxxxxxxxxxxxx>Reviewed-by: Rik van Riel <riel@xxxxxxxxxx>