diff options
Diffstat (limited to 'include/linux/mm.h')
-rw-r--r-- | include/linux/mm.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index c3f6c39d41d..59eca28b5ae 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
@@ -37,10 +37,6 @@ extern int sysctl_legacy_va_layout; | |||
37 | #include <asm/processor.h> | 37 | #include <asm/processor.h> |
38 | #include <asm/atomic.h> | 38 | #include <asm/atomic.h> |
39 | 39 | ||
40 | #ifndef MM_VM_SIZE | ||
41 | #define MM_VM_SIZE(mm) ((TASK_SIZE + PGDIR_SIZE - 1) & PGDIR_MASK) | ||
42 | #endif | ||
43 | |||
44 | #define nth_page(page,n) pfn_to_page(page_to_pfn((page)) + (n)) | 40 | #define nth_page(page,n) pfn_to_page(page_to_pfn((page)) + (n)) |
45 | 41 | ||
46 | /* | 42 | /* |
@@ -582,13 +578,12 @@ struct zap_details { | |||
582 | pgoff_t first_index; /* Lowest page->index to unmap */ | 578 | pgoff_t first_index; /* Lowest page->index to unmap */ |
583 | pgoff_t last_index; /* Highest page->index to unmap */ | 579 | pgoff_t last_index; /* Highest page->index to unmap */ |
584 | spinlock_t *i_mmap_lock; /* For unmap_mapping_range: */ | 580 | spinlock_t *i_mmap_lock; /* For unmap_mapping_range: */ |
585 | unsigned long break_addr; /* Where unmap_vmas stopped */ | ||
586 | unsigned long truncate_count; /* Compare vm_truncate_count */ | 581 | unsigned long truncate_count; /* Compare vm_truncate_count */ |
587 | }; | 582 | }; |
588 | 583 | ||
589 | void zap_page_range(struct vm_area_struct *vma, unsigned long address, | 584 | unsigned long zap_page_range(struct vm_area_struct *vma, unsigned long address, |
590 | unsigned long size, struct zap_details *); | 585 | unsigned long size, struct zap_details *); |
591 | int unmap_vmas(struct mmu_gather **tlbp, struct mm_struct *mm, | 586 | unsigned long unmap_vmas(struct mmu_gather **tlb, struct mm_struct *mm, |
592 | struct vm_area_struct *start_vma, unsigned long start_addr, | 587 | struct vm_area_struct *start_vma, unsigned long start_addr, |
593 | unsigned long end_addr, unsigned long *nr_accounted, | 588 | unsigned long end_addr, unsigned long *nr_accounted, |
594 | struct zap_details *); | 589 | struct zap_details *); |