From: Andrew Morton Date: Sat, 6 Jan 2007 00:37:05 +0000 (-0800) Subject: [PATCH] shrink_all_memory(): fix lru_pages handling X-Git-Tag: v2.6.20-rc4~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76395d37611e8758dd8bd6c6f5bfcb31e1dc48f9;p=pandora-kernel.git [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-diff-tree failed