* [PATCH] mm/swapfile.c: fix comments for swapcache_prepare
@ 2020-02-12 14:57 Chen Wandun
0 siblings, 0 replies; only message in thread
From: Chen Wandun @ 2020-02-12 14:57 UTC (permalink / raw)
To: akpm, linux-mm, linux-kernel; +Cc: chenwandun
the -EEXIST returned by __swap_duplicate means there is a swap
cache instead -EBUSY
Signed-off-by: Chen Wandun <chenwandun@huawei.com>
---
mm/swapfile.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/swapfile.c b/mm/swapfile.c
index 2c33ff456ed5..0e23c123a545 100644
--- a/mm/swapfile.c
+++ b/mm/swapfile.c
@@ -3476,7 +3476,7 @@ int swap_duplicate(swp_entry_t entry)
*
* Called when allocating swap cache for existing swap entry,
* This can return error codes. Returns 0 at success.
- * -EBUSY means there is a swap cache.
+ * -EEXIST means there is a swap cache.
* Note: return code is different from swap_duplicate().
*/
int swapcache_prepare(swp_entry_t entry)
--
2.17.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-02-12 14:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-12 14:57 [PATCH] mm/swapfile.c: fix comments for swapcache_prepare Chen Wandun
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).