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:
3871525
)
vmscan: avoid setting zone congested if no page dirty
author
Shaohua Li
<
[email protected]
>
Thu, 11 Nov 2010 22:05:17 +0000
(14:05 -0800)
committer
Linus Torvalds
<
[email protected]
>
Fri, 12 Nov 2010 15:55:31 +0000
(07:55 -0800)
nr_dirty and nr_congested are increased only when the page is dirty. So
if all pages are clean, both them will be zero. In this case, we should
not mark the zone congested.
Signed-off-by: Shaohua Li <
[email protected]
>
Reviewed-by: Johannes Weiner <
[email protected]
>
Reviewed-by: Minchan Kim <
[email protected]
>
Acked-by: Mel Gorman <
[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 b8a6fdc2131258db15321021375117cae27cec0d..d31d7ce52c0ea2dbbf85b26019c9fdd70fab624a 100644
(file)
--- a/
mm/vmscan.c
+++ b/
mm/vmscan.c
@@
-913,7
+913,7
@@
keep_lumpy:
* back off and wait for congestion to clear because further reclaim
* will encounter the same problem
*/
- if (nr_dirty == nr_congested)
+ if (nr_dirty == nr_congested
&& nr_dirty != 0
)
zone_set_flag(zone, ZONE_CONGESTED);
free_page_list(&free_pages);