summaryrefslogtreecommitdiffstats
path: root/mm/memory.c
diff options
context:
space:
mode:
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>2017-02-22 18:46:37 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2017-02-22 19:41:30 -0500
commitecf1385d72f0491400a8ceca7001196ca369aa8c (patch)
tree6304ac224dcb77441b9f567ac75ac81616e34ac8 /mm/memory.c
parent3e8715fdc03e8df4d26d8e436166e44e3e416d3b (diff)
mm: drop unused argument of zap_page_range()
There's no users of zap_page_range() who wants non-NULL 'details'. Let's drop it. Link: http://lkml.kernel.org/r/20170118122429.43661-3-kirill.shutemov@linux.intel.com Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Acked-by: Michal Hocko <mhocko@suse.com> Cc: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Rik van Riel <riel@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
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 e9035a0afee2..7663068a33c6 100644
--- a/mm/memory.c
+++ b/mm/memory.c
@@ -1370,12 +1370,11 @@ void unmap_vmas(struct mmu_gather *tlb,
1370 * @vma: vm_area_struct holding the applicable pages 1370 * @vma: vm_area_struct holding the applicable pages
1371 * @start: starting address of pages to zap 1371 * @start: starting address of pages to zap
1372 * @size: number of bytes to zap 1372 * @size: number of bytes to zap
1373 * @details: details of shared cache invalidation
1374 * 1373 *
1375 * Caller must protect the VMA list 1374 * Caller must protect the VMA list
1376 */ 1375 */
1377void zap_page_range(struct vm_area_struct *vma, unsigned long start, 1376void zap_page_range(struct vm_area_struct *vma, unsigned long start,
1378 unsigned long size, struct zap_details *details) 1377 unsigned long size)
1379{ 1378{
1380 struct mm_struct *mm = vma->vm_mm; 1379 struct mm_struct *mm = vma->vm_mm;
1381 struct mmu_gather tlb; 1380 struct mmu_gather tlb;
@@ -1386,7 +1385,7 @@ void zap_page_range(struct vm_area_struct *vma, unsigned long start,
1386 update_hiwater_rss(mm); 1385 update_hiwater_rss(mm);
1387 mmu_notifier_invalidate_range_start(mm, start, end); 1386 mmu_notifier_invalidate_range_start(mm, start, end);
1388 for ( ; vma && vma->vm_start < end; vma = vma->vm_next) 1387 for ( ; vma && vma->vm_start < end; vma = vma->vm_next)
1389 unmap_single_vma(&tlb, vma, start, end, details); 1388 unmap_single_vma(&tlb, vma, start, end, NULL);
1390 mmu_notifier_invalidate_range_end(mm, start, end); 1389 mmu_notifier_invalidate_range_end(mm, start, end);
1391 tlb_finish_mmu(&tlb, start, end); 1390 tlb_finish_mmu(&tlb, start, end);
1392} 1391}