mm: drop unused argument of zap_page_range()
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Wed, 22 Feb 2017 23:46:37 +0000 (15:46 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 23 Feb 2017 00:41:30 +0000 (16:41 -0800)
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>
arch/s390/mm/gmap.c
arch/x86/mm/mpx.c
drivers/android/binder.c
drivers/staging/android/ion/ion.c
include/linux/mm.h
mm/madvise.c
mm/memory.c

index ec1f0dedb948df0766a4849bd429f0fb70eece27..59ac93714fa47dd34e44fa0bbf25d08bcba87ab5 100644 (file)
@@ -687,7 +687,7 @@ void gmap_discard(struct gmap *gmap, unsigned long from, unsigned long to)
                /* Find vma in the parent mm */
                vma = find_vma(gmap->mm, vmaddr);
                size = min(to - gaddr, PMD_SIZE - (gaddr & ~PMD_MASK));
-               zap_page_range(vma, vmaddr, size, NULL);
+               zap_page_range(vma, vmaddr, size);
        }
        up_read(&gmap->mm->mmap_sem);
 }
index af59f808742f94df84ab0aaed1ac2db3ea27e016..aad4ac386f98c34d7cec84a35974b22207bcea6a 100644 (file)
@@ -796,7 +796,7 @@ static noinline int zap_bt_entries_mapping(struct mm_struct *mm,
                        return -EINVAL;
 
                len = min(vma->vm_end, end) - addr;
-               zap_page_range(vma, addr, len, NULL);
+               zap_page_range(vma, addr, len);
                trace_mpx_unmap_zap(addr, addr+len);
 
                vma = vma->vm_next;
index 9451b762fa1c290c8f74dd59c6848faaea40a30e..15b263a420e8c00168faea63965bf25208980921 100644 (file)
@@ -657,7 +657,7 @@ free_range:
                page = &proc->pages[(page_addr - proc->buffer) / PAGE_SIZE];
                if (vma)
                        zap_page_range(vma, (uintptr_t)page_addr +
-                               proc->user_buffer_offset, PAGE_SIZE, NULL);
+                               proc->user_buffer_offset, PAGE_SIZE);
 err_vm_insert_page_failed:
                unmap_kernel_range((unsigned long)page_addr, PAGE_SIZE);
 err_map_kernel_failed:
index 937c2d5d7ec3f922d17fa38ceaf9f67f43a0a87b..969600779e44d7e664121177d86e95ea9d61089b 100644 (file)
@@ -865,8 +865,7 @@ static void ion_buffer_sync_for_device(struct ion_buffer *buffer,
        list_for_each_entry(vma_list, &buffer->vmas, list) {
                struct vm_area_struct *vma = vma_list->vma;
 
-               zap_page_range(vma, vma->vm_start, vma->vm_end - vma->vm_start,
-                              NULL);
+               zap_page_range(vma, vma->vm_start, vma->vm_end - vma->vm_start);
        }
        mutex_unlock(&buffer->lock);
 }
index 062936e8b832c38fa72ea701707667651d9ae533..574bc157a27c3e358aae6fa6f5690a15c2a82635 100644 (file)
@@ -1185,7 +1185,7 @@ struct page *vm_normal_page_pmd(struct vm_area_struct *vma, unsigned long addr,
 int zap_vma_ptes(struct vm_area_struct *vma, unsigned long address,
                unsigned long size);
 void zap_page_range(struct vm_area_struct *vma, unsigned long address,
-               unsigned long size, struct zap_details *);
+               unsigned long size);
 void unmap_vmas(struct mmu_gather *tlb, struct vm_area_struct *start_vma,
                unsigned long start, unsigned long end);
 
index ca75b8a01ba09d28938735e7a33b41392717f841..7f1490f0d3a677aea8d9ea07a9f35808cb91a363 100644 (file)
@@ -478,7 +478,7 @@ static long madvise_dontneed(struct vm_area_struct *vma,
                return -EINVAL;
 
        madvise_userfault_dontneed(vma, prev, start, end);
-       zap_page_range(vma, start, end - start, NULL);
+       zap_page_range(vma, start, end - start);
        return 0;
 }
 
index e9035a0afee20e15c7a4b5ab3797dbfce358e8b8..7663068a33c6674a4e9ea1de34f02dc936316c24 100644 (file)
@@ -1370,12 +1370,11 @@ void unmap_vmas(struct mmu_gather *tlb,
  * @vma: vm_area_struct holding the applicable pages
  * @start: starting address of pages to zap
  * @size: number of bytes to zap
- * @details: details of shared cache invalidation
  *
  * Caller must protect the VMA list
  */
 void zap_page_range(struct vm_area_struct *vma, unsigned long start,
-               unsigned long size, struct zap_details *details)
+               unsigned long size)
 {
        struct mm_struct *mm = vma->vm_mm;
        struct mmu_gather tlb;
@@ -1386,7 +1385,7 @@ void zap_page_range(struct vm_area_struct *vma, unsigned long start,
        update_hiwater_rss(mm);
        mmu_notifier_invalidate_range_start(mm, start, end);
        for ( ; vma && vma->vm_start < end; vma = vma->vm_next)
-               unmap_single_vma(&tlb, vma, start, end, details);
+               unmap_single_vma(&tlb, vma, start, end, NULL);
        mmu_notifier_invalidate_range_end(mm, start, end);
        tlb_finish_mmu(&tlb, start, end);
 }