Displaying 3 results from an estimated 3 matches for "isolated_migratable_pag".
Did you mean:
isolated_migratable_page
2015 Mar 31
2
[PATCH] add generic callbacks into compaction
...(page->mapping->a_ops->isolatepage(page))
goto isolate_success;
- }
- }
continue;
}
diff --git a/mm/migrate.c b/mm/migrate.c
index 85e0426..37cb366 100644
--- a/mm/migrate.c
+++ b/mm/migrate.c
@@ -71,6 +71,12 @@ int migrate_prep_local(void)
return 0;
}
+static bool isolated_migratable_page(struct page *page)
+{
+ return page_mapped(page) == 0 &&
+ mapping_migratable(page->mapping);
+}
+
/*
* Put previously isolated pages back onto the appropriate lists
* from where they were once taken off for compaction/migration.
@@ -91,9 +97,9 @@ void putback_movable_pages(struct...
2015 Mar 31
2
[PATCH] add generic callbacks into compaction
...(page->mapping->a_ops->isolatepage(page))
goto isolate_success;
- }
- }
continue;
}
diff --git a/mm/migrate.c b/mm/migrate.c
index 85e0426..37cb366 100644
--- a/mm/migrate.c
+++ b/mm/migrate.c
@@ -71,6 +71,12 @@ int migrate_prep_local(void)
return 0;
}
+static bool isolated_migratable_page(struct page *page)
+{
+ return page_mapped(page) == 0 &&
+ mapping_migratable(page->mapping);
+}
+
/*
* Put previously isolated pages back onto the appropriate lists
* from where they were once taken off for compaction/migration.
@@ -91,9 +97,9 @@ void putback_movable_pages(struct...
2015 Apr 07
0
[PATCH] add generic callbacks into compaction
...success;
> - }
> - }
> continue;
> }
>
> diff --git a/mm/migrate.c b/mm/migrate.c
> index 85e0426..37cb366 100644
> --- a/mm/migrate.c
> +++ b/mm/migrate.c
> @@ -71,6 +71,12 @@ int migrate_prep_local(void)
> return 0;
> }
>
> +static bool isolated_migratable_page(struct page *page)
> +{
> + return page_mapped(page) == 0 &&
> + mapping_migratable(page->mapping);
> +}
Why does we need to check like this?
Whether isolate was successful or not depends on the driver.
We cannot expect it with only page_mapped.
> +
> /*
> * P...