summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorPeter Xu <peterx@redhat.com>2020-08-12 04:39:01 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2020-08-12 20:58:04 +0300
commit64019a2e467a288a16b65ab55ddcbf58c1b00187 (patch)
tree6c4272bf0188188b63023858edf85786a8f54817 /fs
parenta2beb5f1efede6924a4258462a5660572e6ca864 (diff)
downloadlinux-64019a2e467a288a16b65ab55ddcbf58c1b00187.tar.xz
mm/gup: remove task_struct pointer for all gup code
After the cleanup of page fault accounting, gup does not need to pass task_struct around any more. Remove that parameter in the whole gup stack. Signed-off-by: Peter Xu <peterx@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Reviewed-by: John Hubbard <jhubbard@nvidia.com> Link: http://lkml.kernel.org/r/20200707225021.200906-26-peterx@redhat.com Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/exec.c b/fs/exec.c
index a57d9785832b..a91003e28eaa 100644
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -217,7 +217,7 @@ static struct page *get_arg_page(struct linux_binprm *bprm, unsigned long pos,
* We are doing an exec(). 'current' is the process
* doing the exec and bprm->mm is the new process's mm.
*/
- ret = get_user_pages_remote(current, bprm->mm, pos, 1, gup_flags,
+ ret = get_user_pages_remote(bprm->mm, pos, 1, gup_flags,
&page, NULL, NULL);
if (ret <= 0)
return NULL;