From: Li Chen Date: Tue, 7 Apr 2020 03:04:38 +0000 (-0700) Subject: mm/ksm.c: update get_user_pages() argument in comment X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=7a9547fd4ebc5df52245e1df8a2e0bb481f20a92;p=linux.git mm/ksm.c: update get_user_pages() argument in comment This updates get_user_pages()'s argument in ksm_test_exit()'s comment Signed-off-by: Li Chen Signed-off-by: Andrew Morton Reviewed-by: Andrew Morton Link: http://lkml.kernel.org/r/30ac2417-f1c7-f337-0beb-df561295298c@uniontech.com Signed-off-by: Linus Torvalds --- diff --git a/mm/ksm.c b/mm/ksm.c index d17c7d57d0d85..363ec81895612 100644 --- a/mm/ksm.c +++ b/mm/ksm.c @@ -455,7 +455,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(addr, 1, 1, 1, &page, NULL) == 1) + * if (get_user_pages(addr, 1, FOLL_WRITE, &page, NULL) == 1) * put_page(page); * * but taking great care only to touch a ksm page, in a VM_MERGEABLE vma,