Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 109403
b: refs/heads/master
c: 344c790
h: refs/heads/master
i:
  109401: 46247bb
  109399: 0ee4c30
v: v3
  • Loading branch information
Adam Litke authored and Linus Torvalds committed Sep 3, 2008
1 parent 3dff73b commit 9ee5009
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 169ccbd44eb20f5bb7e4352451eba25397e29749
refs/heads/master: 344c790e3821dac37eb742ddd0b611a300f78b9a
7 changes: 7 additions & 0 deletions trunk/mm/page_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,9 @@ static int move_freepages(struct zone *zone,
#endif

for (page = start_page; page <= end_page;) {
/* Make sure we are not inadvertently changing nodes */
VM_BUG_ON(page_to_nid(page) != zone_to_nid(zone));

if (!pfn_valid_within(page_to_pfn(page))) {
page++;
continue;
Expand Down Expand Up @@ -2516,6 +2519,10 @@ static void setup_zone_migrate_reserve(struct zone *zone)
continue;
page = pfn_to_page(pfn);

/* Watch out for overlapping nodes */
if (page_to_nid(page) != zone_to_nid(zone))
continue;

/* Blocks with reserved pages will never free, skip them. */
if (PageReserved(page))
continue;
Expand Down

0 comments on commit 9ee5009

Please sign in to comment.