diff options
Diffstat (limited to 'mm/mmap.c')
-rw-r--r-- | mm/mmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1917,7 +1917,7 @@ static void unmap_region(struct mm_struct *mm, | |||
1917 | lru_add_drain(); | 1917 | lru_add_drain(); |
1918 | tlb_gather_mmu(&tlb, mm, 0); | 1918 | tlb_gather_mmu(&tlb, mm, 0); |
1919 | update_hiwater_rss(mm); | 1919 | update_hiwater_rss(mm); |
1920 | unmap_vmas(&tlb, vma, start, end, &nr_accounted, NULL); | 1920 | unmap_vmas(&tlb, vma, start, end, &nr_accounted); |
1921 | vm_unacct_memory(nr_accounted); | 1921 | vm_unacct_memory(nr_accounted); |
1922 | free_pgtables(&tlb, vma, prev ? prev->vm_end : FIRST_USER_ADDRESS, | 1922 | free_pgtables(&tlb, vma, prev ? prev->vm_end : FIRST_USER_ADDRESS, |
1923 | next ? next->vm_start : 0); | 1923 | next ? next->vm_start : 0); |
@@ -2305,7 +2305,7 @@ void exit_mmap(struct mm_struct *mm) | |||
2305 | tlb_gather_mmu(&tlb, mm, 1); | 2305 | tlb_gather_mmu(&tlb, mm, 1); |
2306 | /* update_hiwater_rss(mm) here? but nobody should be looking */ | 2306 | /* update_hiwater_rss(mm) here? but nobody should be looking */ |
2307 | /* Use -1 here to ensure all VMAs in the mm are unmapped */ | 2307 | /* Use -1 here to ensure all VMAs in the mm are unmapped */ |
2308 | unmap_vmas(&tlb, vma, 0, -1, &nr_accounted, NULL); | 2308 | unmap_vmas(&tlb, vma, 0, -1, &nr_accounted); |
2309 | vm_unacct_memory(nr_accounted); | 2309 | vm_unacct_memory(nr_accounted); |
2310 | 2310 | ||
2311 | free_pgtables(&tlb, vma, FIRST_USER_ADDRESS, 0); | 2311 | free_pgtables(&tlb, vma, FIRST_USER_ADDRESS, 0); |