* [PATCH] mm/memory.c: fix comment of finish_mkwrite_fault()
@ 2021-05-13 9:39 Liu Xiang
0 siblings, 0 replies; only message in thread
From: Liu Xiang @ 2021-05-13 9:39 UTC (permalink / raw)
To: akpm; +Cc: linux-mm, linux-kernel, liuxiang_1999, liuxiang1999, Liu Xiang
Fix the return value in comment of finish_mkwrite_fault().
Signed-off-by: Liu Xiang <liu.xiang@zlingsmart.com>
---
mm/memory.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/memory.c b/mm/memory.c
index 730daa009..b844afded 100644
--- a/mm/memory.c
+++ b/mm/memory.c
@@ -3035,7 +3035,7 @@ static vm_fault_t wp_page_copy(struct vm_fault *vmf)
* The function expects the page to be locked or other protection against
* concurrent faults / writeback (such as DAX radix tree locks).
*
- * Return: %VM_FAULT_WRITE on success, %0 when PTE got changed before
+ * Return: %0 on success, %VM_FAULT_NOPAGE when PTE got changed before
* we acquired PTE lock.
*/
vm_fault_t finish_mkwrite_fault(struct vm_fault *vmf)
--
2.17.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-05-13 9:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-13 9:39 [PATCH] mm/memory.c: fix comment of finish_mkwrite_fault() Liu Xiang
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).