]> git.baikalelectronics.ru Git - kernel.git/commit
mm: cleanup: remove unused tsk arg from __access_remote_vm
authorJohn Hubbard <jhubbard@nvidia.com>
Tue, 15 Dec 2020 03:07:45 +0000 (19:07 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 15 Dec 2020 20:13:40 +0000 (12:13 -0800)
commit7745adf3142c7eed26d1b7177478a40fde772a77
tree4c32f3003f16604d86d3639fe87bc69ad674e15a
parent7374618afbb90c58312d9b67da07cc9ef40aaaf0
mm: cleanup: remove unused tsk arg from __access_remote_vm

Despite a comment that said that page fault accounting would be charged to
whatever task_struct* was passed into __access_remote_vm(), the tsk
argument was actually unused.

Making page fault accounting actually use this task struct is quite a
project, so there is no point in keeping the tsk argument.

Delete both the comment, and the argument.

[rppt@linux.ibm.com: changelog addition]

Link: https://lkml.kernel.org/r/20201026074137.4147787-1-jhubbard@nvidia.com
Signed-off-by: John Hubbard <jhubbard@nvidia.com>
Reviewed-by: Mike Rapoport <rppt@linux.ibm.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/mm.h
kernel/ptrace.c
mm/memory.c
mm/nommu.c