diff options
author | Peter Xu <peterx@redhat.com> | 2020-08-11 18:39:01 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-08-12 10:58:04 -0700 |
commit | 64019a2e467a288a16b65ab55ddcbf58c1b00187 (patch) | |
tree | 6c4272bf0188188b63023858edf85786a8f54817 /virt/kvm/async_pf.c | |
parent | a2beb5f1efede6924a4258462a5660572e6ca864 (diff) | |
download | linux-64019a2e467a288a16b65ab55ddcbf58c1b00187.tar.gz linux-64019a2e467a288a16b65ab55ddcbf58c1b00187.tar.bz2 linux-64019a2e467a288a16b65ab55ddcbf58c1b00187.zip |
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 'virt/kvm/async_pf.c')
-rw-r--r-- | virt/kvm/async_pf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/virt/kvm/async_pf.c b/virt/kvm/async_pf.c index 390f758d5a27..dd777688d14a 100644 --- a/virt/kvm/async_pf.c +++ b/virt/kvm/async_pf.c @@ -61,7 +61,7 @@ static void async_pf_execute(struct work_struct *work) * access remotely. */ mmap_read_lock(mm); - get_user_pages_remote(NULL, mm, addr, 1, FOLL_WRITE, NULL, NULL, + get_user_pages_remote(mm, addr, 1, FOLL_WRITE, NULL, NULL, &locked); if (locked) mmap_read_unlock(mm); |