summaryrefslogtreecommitdiffstats
path: root/mm/ksm.c
diff options
context:
space:
mode:
authorLi Chen <chenli@uniontech.com>2020-04-06 20:04:38 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2020-04-07 10:43:38 -0700
commit7a9547fd4ebc5df52245e1df8a2e0bb481f20a92 (patch)
tree7d7784c52e7e8d1ac9821e0143196bff36cea3ef /mm/ksm.c
parent396bcc5299c281e9cf1737ad0efcd97be9f83845 (diff)
downloadlinux-stable-7a9547fd4ebc5df52245e1df8a2e0bb481f20a92.tar.gz
linux-stable-7a9547fd4ebc5df52245e1df8a2e0bb481f20a92.tar.bz2
linux-stable-7a9547fd4ebc5df52245e1df8a2e0bb481f20a92.zip
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 <chenli@uniontech.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Link: http://lkml.kernel.org/r/30ac2417-f1c7-f337-0beb-df561295298c@uniontech.com Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/ksm.c')
-rw-r--r--mm/ksm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/ksm.c b/mm/ksm.c
index d17c7d57d0d8..363ec8189561 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,