diff options
Diffstat (limited to 'include/linux/mm.h')
-rw-r--r-- | include/linux/mm.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index 8e580c07d171..8e2841a2f441 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
@@ -97,7 +97,11 @@ extern unsigned int kobjsize(const void *objp); | |||
97 | #define VM_NORESERVE 0x00200000 /* should the VM suppress accounting */ | 97 | #define VM_NORESERVE 0x00200000 /* should the VM suppress accounting */ |
98 | #define VM_HUGETLB 0x00400000 /* Huge TLB Page VM */ | 98 | #define VM_HUGETLB 0x00400000 /* Huge TLB Page VM */ |
99 | #define VM_NONLINEAR 0x00800000 /* Is non-linear (remap_file_pages) */ | 99 | #define VM_NONLINEAR 0x00800000 /* Is non-linear (remap_file_pages) */ |
100 | #ifdef CONFIG_MMU | ||
101 | #define VM_LOCK_RMAP 0x01000000 /* Do not follow this rmap (mmu mmap) */ | ||
102 | #else | ||
100 | #define VM_MAPPED_COPY 0x01000000 /* T if mapped copy of data (nommu mmap) */ | 103 | #define VM_MAPPED_COPY 0x01000000 /* T if mapped copy of data (nommu mmap) */ |
104 | #endif | ||
101 | #define VM_INSERTPAGE 0x02000000 /* The vma has had "vm_insert_page()" done on it */ | 105 | #define VM_INSERTPAGE 0x02000000 /* The vma has had "vm_insert_page()" done on it */ |
102 | #define VM_ALWAYSDUMP 0x04000000 /* Always include in core dumps */ | 106 | #define VM_ALWAYSDUMP 0x04000000 /* Always include in core dumps */ |
103 | 107 | ||
@@ -1216,7 +1220,7 @@ static inline void vma_nonlinear_insert(struct vm_area_struct *vma, | |||
1216 | 1220 | ||
1217 | /* mmap.c */ | 1221 | /* mmap.c */ |
1218 | extern int __vm_enough_memory(struct mm_struct *mm, long pages, int cap_sys_admin); | 1222 | extern int __vm_enough_memory(struct mm_struct *mm, long pages, int cap_sys_admin); |
1219 | extern void vma_adjust(struct vm_area_struct *vma, unsigned long start, | 1223 | extern int vma_adjust(struct vm_area_struct *vma, unsigned long start, |
1220 | unsigned long end, pgoff_t pgoff, struct vm_area_struct *insert); | 1224 | unsigned long end, pgoff_t pgoff, struct vm_area_struct *insert); |
1221 | extern struct vm_area_struct *vma_merge(struct mm_struct *, | 1225 | extern struct vm_area_struct *vma_merge(struct mm_struct *, |
1222 | struct vm_area_struct *prev, unsigned long addr, unsigned long end, | 1226 | struct vm_area_struct *prev, unsigned long addr, unsigned long end, |