diff options
author | Tang Chen <tangchen@cn.fujitsu.com> | 2013-06-20 06:10:19 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2013-08-20 07:03:41 -0400 |
commit | 85dbe706074c8b9091a3bc5f24eff02a044701c3 (patch) | |
tree | 648291efad3a32525de92fcbc95127a55a225480 | |
parent | 884ad3f167f547cb7eafdaa69c2cae9c7771cf53 (diff) |
page_isolation: Fix a comment typo in test_pages_isolated()
pageblock_nr_page should be pageblock_nr_pages, and fist is
a typo of first.
Signed-off-by: Tang Chen <tangchen@cn.fujitsu.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
-rw-r--r-- | mm/page_isolation.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mm/page_isolation.c b/mm/page_isolation.c index 383bdbb98b04..0cee10ffb98d 100644 --- a/mm/page_isolation.c +++ b/mm/page_isolation.c | |||
@@ -226,9 +226,9 @@ int test_pages_isolated(unsigned long start_pfn, unsigned long end_pfn, | |||
226 | int ret; | 226 | int ret; |
227 | 227 | ||
228 | /* | 228 | /* |
229 | * Note: pageblock_nr_page != MAX_ORDER. Then, chunks of free page | 229 | * Note: pageblock_nr_pages != MAX_ORDER. Then, chunks of free pages |
230 | * is not aligned to pageblock_nr_pages. | 230 | * are not aligned to pageblock_nr_pages. |
231 | * Then we just check pagetype fist. | 231 | * Then we just check migratetype first. |
232 | */ | 232 | */ |
233 | for (pfn = start_pfn; pfn < end_pfn; pfn += pageblock_nr_pages) { | 233 | for (pfn = start_pfn; pfn < end_pfn; pfn += pageblock_nr_pages) { |
234 | page = __first_valid_page(pfn, pageblock_nr_pages); | 234 | page = __first_valid_page(pfn, pageblock_nr_pages); |
@@ -238,7 +238,7 @@ int test_pages_isolated(unsigned long start_pfn, unsigned long end_pfn, | |||
238 | page = __first_valid_page(start_pfn, end_pfn - start_pfn); | 238 | page = __first_valid_page(start_pfn, end_pfn - start_pfn); |
239 | if ((pfn < end_pfn) || !page) | 239 | if ((pfn < end_pfn) || !page) |
240 | return -EBUSY; | 240 | return -EBUSY; |
241 | /* Check all pages are free or Marked as ISOLATED */ | 241 | /* Check all pages are free or marked as ISOLATED */ |
242 | zone = page_zone(page); | 242 | zone = page_zone(page); |
243 | spin_lock_irqsave(&zone->lock, flags); | 243 | spin_lock_irqsave(&zone->lock, flags); |
244 | ret = __test_page_isolated_in_pageblock(start_pfn, end_pfn, | 244 | ret = __test_page_isolated_in_pageblock(start_pfn, end_pfn, |