mm: /proc/sys/vm/stat_refresh to force vmstat update
[cascardo/linux.git] / mm / memory_hotplug.c
index aa34431..b21d889 100644 (file)
@@ -1410,7 +1410,7 @@ static struct page *next_active_pageblock(struct page *page)
 }
 
 /* Checks if this range of memory is likely to be hot-removable. */
-int is_mem_section_removable(unsigned long start_pfn, unsigned long nr_pages)
+bool is_mem_section_removable(unsigned long start_pfn, unsigned long nr_pages)
 {
        struct page *page = pfn_to_page(start_pfn);
        struct page *end_page = page + nr_pages;
@@ -1418,12 +1418,12 @@ int is_mem_section_removable(unsigned long start_pfn, unsigned long nr_pages)
        /* Check the starting page of each pageblock within the range */
        for (; page < end_page; page = next_active_pageblock(page)) {
                if (!is_pageblock_removable_nolock(page))
-                       return 0;
+                       return false;
                cond_resched();
        }
 
        /* All pageblocks in the memory block are likely to be hot-removable */
-       return 1;
+       return true;
 }
 
 /*