diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-03-05 22:38:09 +0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-03-21 05:39:50 +0400 |
commit | 14f5ff5df37a8fabe2d25b1e64df7e010cc87db9 (patch) | |
tree | 10f46ad8429790de35ebad33631d435f74aaff0e /mm | |
parent | 8b2a12382ccc9df31b27dac37fe04dffe088b57c (diff) | |
download | linux-14f5ff5df37a8fabe2d25b1e64df7e010cc87db9.tar.xz |
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')
-rw-r--r-- | mm/memory.c | 5 |
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, * @size: number of bytes to zap * @details: details of nonlinear truncation or shared cache invalidation */ -unsigned long zap_page_range(struct vm_area_struct *vma, unsigned long address, +void zap_page_range(struct vm_area_struct *vma, unsigned long address, unsigned long size, struct zap_details *details) { struct mm_struct *mm = vma->vm_mm; @@ -1397,9 +1397,8 @@ unsigned long zap_page_range(struct vm_area_struct *vma, unsigned long address, lru_add_drain(); tlb_gather_mmu(&tlb, mm, 0); update_hiwater_rss(mm); - end = unmap_vmas(&tlb, vma, address, end, &nr_accounted, details); + unmap_vmas(&tlb, vma, address, end, &nr_accounted, details); tlb_finish_mmu(&tlb, address, end); - return end; } /** |