* [PATCH] mm/ksm.c: update get_user_pages in comment
@ 2020-03-03 15:54 chenli
0 siblings, 0 replies; only message in thread
From: chenli @ 2020-03-03 15:54 UTC (permalink / raw)
To: akpm; +Cc: linux-mm, linux-kernel, trivial
[-- Attachment #1: Type: text/plain, Size: 723 bytes --]
This updates get_user_pages in ksm_test_exit's comment
Signed-off-by: Li Chen <chenli@uniontech.com>
---
mm/ksm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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,
[-- Attachment #2: Type: text/html, Size: 5241 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-03-03 15:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-03 15:54 [PATCH] mm/ksm.c: update get_user_pages in comment chenli
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).