]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - mm/page_isolation.c
dt-bindings: gnss: add lna-supply property
[linux.git] / mm / page_isolation.c
index 43e0856088467551ae6bb71090d89469ebe3fb8d..ce323e56b34d6bc43a9e16cc9054f35290bb0b63 100644 (file)
@@ -15,8 +15,7 @@
 #define CREATE_TRACE_POINTS
 #include <trace/events/page_isolation.h>
 
-static int set_migratetype_isolate(struct page *page, int migratetype,
-                               bool skip_hwpoisoned_pages)
+static int set_migratetype_isolate(struct page *page, int migratetype, int isol_flags)
 {
        struct zone *zone;
        unsigned long flags, pfn;
@@ -60,8 +59,7 @@ static int set_migratetype_isolate(struct page *page, int migratetype,
         * FIXME: Now, memory hotplug doesn't call shrink_slab() by itself.
         * We just check MOVABLE pages.
         */
-       if (!has_unmovable_pages(zone, page, arg.pages_found, migratetype,
-                                skip_hwpoisoned_pages))
+       if (!has_unmovable_pages(zone, page, arg.pages_found, migratetype, flags))
                ret = 0;
 
        /*
@@ -185,7 +183,7 @@ __first_valid_page(unsigned long pfn, unsigned long nr_pages)
  * prevents two threads from simultaneously working on overlapping ranges.
  */
 int start_isolate_page_range(unsigned long start_pfn, unsigned long end_pfn,
-                            unsigned migratetype, bool skip_hwpoisoned_pages)
+                            unsigned migratetype, int flags)
 {
        unsigned long pfn;
        unsigned long undo_pfn;
@@ -199,7 +197,7 @@ int start_isolate_page_range(unsigned long start_pfn, unsigned long end_pfn,
             pfn += pageblock_nr_pages) {
                page = __first_valid_page(pfn, pageblock_nr_pages);
                if (page &&
-                   set_migratetype_isolate(page, migratetype, skip_hwpoisoned_pages)) {
+                   set_migratetype_isolate(page, migratetype, flags)) {
                        undo_pfn = pfn;
                        goto undo;
                }