Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 164369
b: refs/heads/master
c: 8e7e40d
h: refs/heads/master
i:
  164367: 9a3da1d
v: v3
  • Loading branch information
Shaohua Li authored and Linus Torvalds committed Sep 22, 2009
1 parent f21dd35 commit 68821c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6fb332fabd7288af9dbe7992394aa6ba97c1a537
refs/heads/master: 8e7e40d9658cf7b2ae2b76484e235799b3ddaa97
5 changes: 4 additions & 1 deletion trunk/mm/page_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -4906,13 +4906,16 @@ int set_migratetype_isolate(struct page *page)
struct zone *zone;
unsigned long flags;
int ret = -EBUSY;
int zone_idx;

zone = page_zone(page);
zone_idx = zone_idx(zone);
spin_lock_irqsave(&zone->lock, flags);
/*
* In future, more migrate types will be able to be isolation target.
*/
if (get_pageblock_migratetype(page) != MIGRATE_MOVABLE)
if (get_pageblock_migratetype(page) != MIGRATE_MOVABLE &&
zone_idx != ZONE_MOVABLE)
goto out;
set_pageblock_migratetype(page, MIGRATE_ISOLATE);
move_freepages_block(zone, page, MIGRATE_ISOLATE);
Expand Down

0 comments on commit 68821c8

Please sign in to comment.