projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f75ca96
)
memcg: sc.nr_to_reclaim should be initialized
author
KOSAKI Motohiro
<
[email protected]
>
Wed, 11 Aug 2010 01:03:02 +0000
(18:03 -0700)
committer
Linus Torvalds
<
[email protected]
>
Wed, 11 Aug 2010 15:59:19 +0000
(08:59 -0700)
Currently, mem_cgroup_shrink_node_zone() initialize sc.nr_to_reclaim as 0.
It mean shrink_zone() only scan 32 pages and immediately return even if
it doesn't reclaim any pages.
This patch fixes it.
Signed-off-by: KOSAKI Motohiro <
[email protected]
>
Acked-by: KAMEZAWA Hiroyuki <
[email protected]
>
Acked-by: Mel Gorman <
[email protected]
>
Cc: Balbir Singh <
[email protected]
>
Cc: Nishimura Daisuke <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/vmscan.c
patch
|
blob
|
history
diff --git
a/mm/vmscan.c
b/mm/vmscan.c
index ec5ddccbf82e9dbef3e23b7a6faa72283360eee4..4e684449bf40e4f367133db25dd0d54a3573d7ba 100644
(file)
--- a/
mm/vmscan.c
+++ b/
mm/vmscan.c
@@
-1972,6
+1972,7
@@
unsigned long mem_cgroup_shrink_node_zone(struct mem_cgroup *mem,
struct zone *zone, int nid)
{
struct scan_control sc = {
+ .nr_to_reclaim = SWAP_CLUSTER_MAX,
.may_writepage = !laptop_mode,
.may_unmap = 1,
.may_swap = !noswap,