From: Andrew Morton Date: Thu, 27 Jun 2013 23:52:23 +0000 (+1000) Subject: shrinker-kill-old-shrink-api-fix X-Git-Tag: next-20130628~3^2~392 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=6c3631aeba1d5717f03f55412c4d9ae421ef886f;p=karo-tx-linux.git shrinker-kill-old-shrink-api-fix fix whitespace Cc: Glauber Costa Signed-off-by: Andrew Morton --- diff --git a/mm/vmscan.c b/mm/vmscan.c index d03facb136e4..2ccb1afeef29 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -261,11 +261,10 @@ shrink_slab_node(struct shrink_control *shrinkctl, struct shrinker *shrinker, max_pass, delta, total_scan); while (total_scan >= batch_size) { - unsigned long ret; + shrinkctl->nr_to_scan = batch_size; ret = shrinker->scan_objects(shrinker, shrinkctl); - if (ret == SHRINK_STOP) break; freed += ret;