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:
02d46e0
)
memcg: use correct scan number at reclaim
author
KOSAKI Motohiro
<
[email protected]
>
Thu, 12 Mar 2009 21:31:36 +0000
(14:31 -0700)
committer
Linus Torvalds
<
[email protected]
>
Thu, 12 Mar 2009 23:20:24 +0000
(16:20 -0700)
Even when page reclaim is under mem_cgroup, # of scan page is determined by
status of global LRU. Fix that.
Signed-off-by: KOSAKI Motohiro <
[email protected]
>
Signed-off-by: KAMEZAWA Hiroyuki <
[email protected]
>
Cc: Daisuke Nishimura <
[email protected]
>
Cc: Balbir Singh <
[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 6177e3bcd66bdc7b8fc74cb583d47bb89c4940ef..e89517141657bb6ecfa4c17cf1aceb8b76be78f6 100644
(file)
--- a/
mm/vmscan.c
+++ b/
mm/vmscan.c
@@
-1469,7
+1469,7
@@
static void shrink_zone(int priority, struct zone *zone,
int file = is_file_lru(l);
int scan;
- scan = zone_
page_state(zone, NR_LRU_BASE +
l);
+ scan = zone_
nr_pages(zone, sc,
l);
if (priority) {
scan >>= priority;
scan = (scan * percent[file]) / 100;