mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
mm/gup: Switch all callers of get_user_pages() to not pass tsk/mm
We will soon modify the vanilla get_user_pages() so it can no longer be used on mm/tasks other than 'current/current->mm', which is by far the most common way it is called. For now, we allow the old-style calls, but warn when they are used. (implemented in previous patch) This patch switches all callers of: get_user_pages() get_user_pages_unlocked() get_user_pages_locked() to stop passing tsk/mm so they will no longer see the warnings. Signed-off-by: Dave Hansen <[email protected]> Reviewed-by: Thomas Gleixner <[email protected]> Cc: Andrea Arcangeli <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Andy Lutomirski <[email protected]> Cc: Borislav Petkov <[email protected]> Cc: Brian Gerst <[email protected]> Cc: Dave Hansen <[email protected]> Cc: Denys Vlasenko <[email protected]> Cc: H. Peter Anvin <[email protected]> Cc: Kirill A. Shutemov <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Naoya Horiguchi <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Rik van Riel <[email protected]> Cc: Srikar Dronamraju <[email protected]> Cc: Vlastimil Babka <[email protected]> Cc: [email protected] Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
This commit is contained in:
parent
cde70140fe
commit
d4edcf0d56
29 changed files with 44 additions and 64 deletions
2
mm/ksm.c
2
mm/ksm.c
|
|
@ -352,7 +352,7 @@ static inline bool ksm_test_exit(struct mm_struct *mm)
|
|||
/*
|
||||
* We use break_ksm to break COW on a ksm page: it's a stripped down
|
||||
*
|
||||
* if (get_user_pages(current, mm, addr, 1, 1, 1, &page, NULL) == 1)
|
||||
* if (get_user_pages(addr, 1, 1, 1, &page, NULL) == 1)
|
||||
* put_page(page);
|
||||
*
|
||||
* but taking great care only to touch a ksm page, in a VM_MERGEABLE vma,
|
||||
|
|
|
|||
Loading…
Reference in a new issue