From 76395d37611e8758dd8bd6c6f5bfcb31e1dc48f9 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Fri, 5 Jan 2007 16:37:05 -0800 Subject: [PATCH] [PATCH] shrink_all_memory(): fix lru_pages handling At the end of shrink_all_memory() we forget to recalculate lru_pages: it can be zero. Fix that up, and add a helper function for this operation too. Also, recalculate lru_pages each time around the inner loop to get the balancing correct. Cc: "Rafael J. Wysocki" Cc: Pavel Machek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-format-patch failed