[PATCH] mm/ksm.c: update get_user_pages in comment

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This updates get_user_pages in ksm_test_exit's comment


Signed-off-by: Li Chen <chenli@xxxxxxxxxxxxx>

---

 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,






[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux