projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc10250
)
[PATCH] balance_pdgat() cleanup
author
Andrew Morton
<akpm@osdl.org>
Thu, 7 Dec 2006 04:32:01 +0000
(20:32 -0800)
committer
Linus Torvalds
<torvalds@woody.osdl.org>
Thu, 7 Dec 2006 16:39:21 +0000
(08:39 -0800)
Despaghettify balance_pdgat() a bit.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/vmscan.c
patch
|
blob
|
blame
|
history
diff --git
a/mm/vmscan.c
b/mm/vmscan.c
index 518540a4a2a66a1ade20312d1d655ba6923e05b5..2e97baa3b2aa4923d54e0a4818d98e55cd5cc606 100644
(file)
--- a/
mm/vmscan.c
+++ b/
mm/vmscan.c
@@
-1172,11
+1172,12
@@
loop_again:
if (!zone_watermark_ok(zone, order, zone->pages_high,
0, 0)) {
end_zone = i;
-
goto scan
;
+
break
;
}
}
- goto out;
-scan:
+ if (i < 0)
+ goto out;
+
for (i = 0; i <= end_zone; i++) {
struct zone *zone = pgdat->node_zones + i;