From: chenli <chenli@uniontech.com>
To: akpm@linux-foundation.org
Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, trivial@kernel.org
Subject: [PATCH] mm/ksm.c: update get_user_pages in comment
Date: Tue, 3 Mar 2020 23:54:38 +0800 [thread overview]
Message-ID: <30ac2417-f1c7-f337-0beb-df561295298c@uniontech.com> (raw)
[-- 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 --]
reply other threads:[~2020-03-03 15:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=30ac2417-f1c7-f337-0beb-df561295298c@uniontech.com \
--to=chenli@uniontech.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=trivial@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox