[PATCH] migration: make sure there is no attempt to migrate reserved pages.

This ensures that reserved pages are not migrated. Reserved pages
currently cause the WARN_ON to trigger in migrate_page_add()

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by Christoph Lameter and committed by Linus Torvalds f4598c8b 1bc691d3

+3 -1
+3 -1
mm/mempolicy.c
··· 208 208 page = vm_normal_page(vma, addr, *pte); 209 209 if (!page) 210 210 continue; 211 + if (PageReserved(page)) 212 + continue; 211 213 nid = page_to_nid(page); 212 214 if (node_isset(nid, *nodes) == !!(flags & MPOL_MF_INVERT)) 213 215 continue; ··· 292 290 static inline int vma_migratable(struct vm_area_struct *vma) 293 291 { 294 292 if (vma->vm_flags & ( 295 - VM_LOCKED|VM_IO|VM_HUGETLB|VM_PFNMAP)) 293 + VM_LOCKED|VM_IO|VM_HUGETLB|VM_PFNMAP|VM_RESERVED)) 296 294 return 0; 297 295 return 1; 298 296 }