git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d63b709
)
[PATCH] shrink_all_memory(): fix lru_pages handling
author
Andrew Morton
<akpm@osdl.org>
Sat, 6 Jan 2007 00:37:05 +0000
(16:37 -0800)
committer
Linus Torvalds
<torvalds@woody.osdl.org>
Sat, 6 Jan 2007 07:55:29 +0000
(23:55 -0800)
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" <rjw@sisk.pl>
Cc: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/vmscan.c
patch
|
blob
|
history
diff --cc
mm/vmscan.c
Simple merge