Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 110133
b: refs/heads/master
c: 6c1b7f6
h: refs/heads/master
i:
  110131: c911885
v: v3
  • Loading branch information
Gerald Schaefer authored and Linus Torvalds committed Oct 2, 2008
1 parent 92314a4 commit 431314c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 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: aa94fbd5ccd840c8ab26d02439ec799b03a72547
refs/heads/master: 6c1b7f680dd4f550fa6f91f148cc6fa2c4bd0737
12 changes: 8 additions & 4 deletions trunk/mm/page_isolation.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,10 @@ __test_page_isolated_in_pageblock(unsigned long pfn, unsigned long end_pfn)

int test_pages_isolated(unsigned long start_pfn, unsigned long end_pfn)
{
unsigned long pfn;
unsigned long pfn, flags;
struct page *page;
struct zone *zone;
int ret;

pfn = start_pfn;
/*
Expand All @@ -131,7 +133,9 @@ int test_pages_isolated(unsigned long start_pfn, unsigned long end_pfn)
if (pfn < end_pfn)
return -EBUSY;
/* Check all pages are free or Marked as ISOLATED */
if (__test_page_isolated_in_pageblock(start_pfn, end_pfn))
return 0;
return -EBUSY;
zone = page_zone(pfn_to_page(pfn));
spin_lock_irqsave(&zone->lock, flags);
ret = __test_page_isolated_in_pageblock(start_pfn, end_pfn);
spin_unlock_irqrestore(&zone->lock, flags);
return ret ? 0 : -EBUSY;
}

0 comments on commit 431314c

Please sign in to comment.