idr: implement idr_preload[_end]() and idr_alloc()
[firefly-linux-kernel-4.4.55.git] / include / linux / mm_types.h
index f8f5162a3571742ff0419638bd18fee62e04be72..ace9a5f01c64fe1a8ae9d97fe45765ddc375df58 100644 (file)
@@ -12,6 +12,7 @@
 #include <linux/cpumask.h>
 #include <linux/page-debug-flags.h>
 #include <linux/uprobes.h>
+#include <linux/page-flags-layout.h>
 #include <asm/page.h>
 #include <asm/mmu.h>
 
@@ -173,7 +174,7 @@ struct page {
        void *shadow;
 #endif
 
-#ifdef CONFIG_NUMA_BALANCING
+#ifdef LAST_NID_NOT_IN_PAGE_FLAGS
        int _last_nid;
 #endif
 }
@@ -414,9 +415,9 @@ struct mm_struct {
 #endif
 #ifdef CONFIG_NUMA_BALANCING
        /*
-        * numa_next_scan is the next time when the PTEs will me marked
-        * pte_numa to gather statistics and migrate pages to new nodes
-        * if necessary
+        * numa_next_scan is the next time that the PTEs will be marked
+        * pte_numa. NUMA hinting faults will gather statistics and migrate
+        * pages to new nodes if necessary.
         */
        unsigned long numa_next_scan;