Commit 7a9547fd authored by Li Chen's avatar Li Chen Committed by Linus Torvalds

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: default avatarLi Chen <chenli@uniontech.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Reviewed-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Link: http://lkml.kernel.org/r/30ac2417-f1c7-f337-0beb-df561295298c@uniontech.comSigned-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 396bcc52
...@@ -455,7 +455,7 @@ static inline bool ksm_test_exit(struct mm_struct *mm) ...@@ -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 * 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); * put_page(page);
* *
* but taking great care only to touch a ksm page, in a VM_MERGEABLE vma, * but taking great care only to touch a ksm page, in a VM_MERGEABLE vma,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment