]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - mm/internal.h
mmap: handle mlocked pages during map, remap, unmap
[linux-2.6-omap-h63xx.git] / mm / internal.h
index 4ebf0bef9a39f0bed64dd40e3167ae02b7891446..48e32f790571f8868e69771e2c91c8c2fd3a34ae 100644 (file)
@@ -61,9 +61,14 @@ static inline unsigned long page_order(struct page *page)
        return page_private(page);
 }
 
-extern int mlock_vma_pages_range(struct vm_area_struct *vma,
+extern long mlock_vma_pages_range(struct vm_area_struct *vma,
                        unsigned long start, unsigned long end);
-extern void munlock_vma_pages_all(struct vm_area_struct *vma);
+extern void munlock_vma_pages_range(struct vm_area_struct *vma,
+                       unsigned long start, unsigned long end);
+static inline void munlock_vma_pages_all(struct vm_area_struct *vma)
+{
+       munlock_vma_pages_range(vma, vma->vm_start, vma->vm_end);
+}
 
 #ifdef CONFIG_UNEVICTABLE_LRU
 /*