aboutsummaryrefslogtreecommitdiffstats
path: root/mm/memory.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2012-03-05 13:38:09 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2012-03-20 21:39:50 -0400
commit14f5ff5df37a8fabe2d25b1e64df7e010cc87db9 (patch)
tree10f46ad8429790de35ebad33631d435f74aaff0e /mm/memory.c
parent8b2a12382ccc9df31b27dac37fe04dffe088b57c (diff)
VM: make zap_page_range() return void
... since all callers ignore its return value and it's been useless since commit 97a894136f29802da19a15541de3c019e1ca147e (mm: Remove i_mmap_lock lockbreak) anyway. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'mm/memory.c')
-rw-r--r--mm/memory.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/mm/memory.c b/mm/memory.c
index f2317c85704e..cfb57b007a6c 100644
--- a/mm/memory.c
+++ b/mm/memory.c
@@ -1386,7 +1386,7 @@ unsigned long unmap_vmas(struct mmu_gather *tlb,
1386 * @size: number of bytes to zap 1386 * @size: number of bytes to zap
1387 * @details: details of nonlinear truncation or shared cache invalidation 1387 * @details: details of nonlinear truncation or shared cache invalidation
1388 */ 1388 */
1389unsigned long zap_page_range(struct vm_area_struct *vma, unsigned long address, 1389void zap_page_range(struct vm_area_struct *vma, unsigned long address,
1390 unsigned long size, struct zap_details *details) 1390 unsigned long size, struct zap_details *details)
1391{ 1391{
1392 struct mm_struct *mm = vma->vm_mm; 1392 struct mm_struct *mm = vma->vm_mm;
@@ -1397,9 +1397,8 @@ unsigned long zap_page_range(struct vm_area_struct *vma, unsigned long address,
1397 lru_add_drain(); 1397 lru_add_drain();
1398 tlb_gather_mmu(&tlb, mm, 0); 1398 tlb_gather_mmu(&tlb, mm, 0);
1399 update_hiwater_rss(mm); 1399 update_hiwater_rss(mm);
1400 end = unmap_vmas(&tlb, vma, address, end, &nr_accounted, details); 1400 unmap_vmas(&tlb, vma, address, end, &nr_accounted, details);
1401 tlb_finish_mmu(&tlb, address, end); 1401 tlb_finish_mmu(&tlb, address, end);
1402 return end;
1403} 1402}
1404 1403
1405/** 1404/**