]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/migrate.h
[POWERPC] macintosh: Use common modalias generation for macio_sysfs
[linux-2.6-omap-h63xx.git] / include / linux / migrate.h
index 48148e0cdbd179725de653eff14a229c26ad6153..75e55dcdeb183bfc76c55fa8ffc05c930bbd49d1 100644 (file)
@@ -5,6 +5,14 @@
 
 typedef struct page *new_page_t(struct page *, unsigned long private, int **);
 
+/* Check if a vma is migratable */
+static inline int vma_migratable(struct vm_area_struct *vma)
+{
+       if (vma->vm_flags & (VM_IO|VM_HUGETLB|VM_PFNMAP|VM_RESERVED))
+               return 0;
+       return 1;
+}
+
 #ifdef CONFIG_MIGRATION
 extern int isolate_lru_page(struct page *p, struct list_head *pagelist);
 extern int putback_lru_pages(struct list_head *l);