|
@@ -276,7 +276,6 @@ static unsigned long isolate_freepages_block(struct compact_control *cc,
|
|
struct page *cursor, *valid_page = NULL;
|
|
struct page *cursor, *valid_page = NULL;
|
|
unsigned long flags;
|
|
unsigned long flags;
|
|
bool locked = false;
|
|
bool locked = false;
|
|
- bool checked_pageblock = false;
|
|
|
|
|
|
|
|
cursor = pfn_to_page(blockpfn);
|
|
cursor = pfn_to_page(blockpfn);
|
|
|
|
|
|
@@ -307,18 +306,6 @@ static unsigned long isolate_freepages_block(struct compact_control *cc,
|
|
if (!locked)
|
|
if (!locked)
|
|
break;
|
|
break;
|
|
|
|
|
|
- /* Recheck this is a suitable migration target under lock */
|
|
|
|
- if (!strict && !checked_pageblock) {
|
|
|
|
- /*
|
|
|
|
- * We need to check suitability of pageblock only once
|
|
|
|
- * and this isolate_freepages_block() is called with
|
|
|
|
- * pageblock range, so just check once is sufficient.
|
|
|
|
- */
|
|
|
|
- checked_pageblock = true;
|
|
|
|
- if (!suitable_migration_target(page))
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/* Recheck this is a buddy page under lock */
|
|
/* Recheck this is a buddy page under lock */
|
|
if (!PageBuddy(page))
|
|
if (!PageBuddy(page))
|
|
goto isolate_fail;
|
|
goto isolate_fail;
|