diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-03-05 13:41:15 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-03-20 21:39:51 -0400 |
commit | 6e8bb0193af3f308ef22817a5560422d33e58b90 (patch) | |
tree | 6001421c8d389bd00b18e0510e3f6c9130f9f80b /mm/mmap.c | |
parent | 853f5e264018113b1f96f05551b07a74b836c7fc (diff) |
VM: make unmap_vmas() return void
same story - nobody uses it and it's been pointless since
"mm: Remove i_mmap_lock lockbreak" went in.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'mm/mmap.c')
-rw-r--r-- | mm/mmap.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -2224,7 +2224,6 @@ void exit_mmap(struct mm_struct *mm) | |||
2224 | struct mmu_gather tlb; | 2224 | struct mmu_gather tlb; |
2225 | struct vm_area_struct *vma; | 2225 | struct vm_area_struct *vma; |
2226 | unsigned long nr_accounted = 0; | 2226 | unsigned long nr_accounted = 0; |
2227 | unsigned long end; | ||
2228 | 2227 | ||
2229 | /* mm's last user has gone, and its about to be pulled down */ | 2228 | /* mm's last user has gone, and its about to be pulled down */ |
2230 | mmu_notifier_release(mm); | 2229 | mmu_notifier_release(mm); |
@@ -2249,7 +2248,7 @@ void exit_mmap(struct mm_struct *mm) | |||
2249 | tlb_gather_mmu(&tlb, mm, 1); | 2248 | tlb_gather_mmu(&tlb, mm, 1); |
2250 | /* update_hiwater_rss(mm) here? but nobody should be looking */ | 2249 | /* update_hiwater_rss(mm) here? but nobody should be looking */ |
2251 | /* Use -1 here to ensure all VMAs in the mm are unmapped */ | 2250 | /* Use -1 here to ensure all VMAs in the mm are unmapped */ |
2252 | end = unmap_vmas(&tlb, vma, 0, -1, &nr_accounted, NULL); | 2251 | unmap_vmas(&tlb, vma, 0, -1, &nr_accounted, NULL); |
2253 | vm_unacct_memory(nr_accounted); | 2252 | vm_unacct_memory(nr_accounted); |
2254 | 2253 | ||
2255 | free_pgtables(&tlb, vma, FIRST_USER_ADDRESS, 0); | 2254 | free_pgtables(&tlb, vma, FIRST_USER_ADDRESS, 0); |