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:
834405c
)
mm: use managed_pages to calculate default zonelist order
author
Jiang Liu
<
[email protected]
>
Wed, 3 Jul 2013 22:03:07 +0000
(15:03 -0700)
committer
Linus Torvalds
<
[email protected]
>
Wed, 3 Jul 2013 23:07:33 +0000
(16:07 -0700)
Use zone->managed_pages instead of zone->present_pages to calculate
default zonelist order because managed_pages means allocatable pages.
Signed-off-by: Jiang Liu <
[email protected]
>
Cc: Mel Gorman <
[email protected]
>
Cc: Minchan Kim <
[email protected]
>
Cc: Marek Szyprowski <
[email protected]
>
Cc: "H. Peter Anvin" <
[email protected]
>
Cc: "Michael S. Tsirkin" <
[email protected]
>
Cc: <
[email protected]
>
Cc: Arnd Bergmann <
[email protected]
>
Cc: Catalin Marinas <
[email protected]
>
Cc: Chris Metcalf <
[email protected]
>
Cc: David Howells <
[email protected]
>
Cc: Geert Uytterhoeven <
[email protected]
>
Cc: Ingo Molnar <
[email protected]
>
Cc: Jeremy Fitzhardinge <
[email protected]
>
Cc: Jianguo Wu <
[email protected]
>
Cc: Joonsoo Kim <
[email protected]
>
Cc: Kamezawa Hiroyuki <
[email protected]
>
Cc: Konrad Rzeszutek Wilk <
[email protected]
>
Cc: Michel Lespinasse <
[email protected]
>
Cc: Rik van Riel <
[email protected]
>
Cc: Rusty Russell <
[email protected]
>
Cc: Tang Chen <
[email protected]
>
Cc: Tejun Heo <
[email protected]
>
Cc: Thomas Gleixner <
[email protected]
>
Cc: Wen Congyang <
[email protected]
>
Cc: Will Deacon <
[email protected]
>
Cc: Yasuaki Ishimatsu <
[email protected]
>
Cc: Yinghai Lu <
[email protected]
>
Cc: Russell King <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/page_alloc.c
patch
|
blob
|
history
diff --git
a/mm/page_alloc.c
b/mm/page_alloc.c
index 657daea88aa8e8d80e036d38c98ca3d271ac3eea..f22542f6dc1280d7911476c15b418e9630b5a2fa 100644
(file)
--- a/
mm/page_alloc.c
+++ b/
mm/page_alloc.c
@@
-3438,8
+3438,8
@@
static int default_zonelist_order(void)
z = &NODE_DATA(nid)->node_zones[zone_type];
if (populated_zone(z)) {
if (zone_type < ZONE_NORMAL)
- low_kmem_size += z->
present
_pages;
- total_size += z->
present
_pages;
+ low_kmem_size += z->
managed
_pages;
+ total_size += z->
managed
_pages;
} else if (zone_type == ZONE_NORMAL) {
/*
* If any node has only lowmem, then node order