Skip to contentSkip to conversation

mm/swapfile.c: fix comments for swapcache_prepare

PATCH Applied Chen Wandun 1 participant 1 message Feb 12, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm/swapfile.c: fix comments for swapcache_prepare

the -EEXIST returned by __swap_duplicate means there is a swap cache instead -EBUSY

---
 mm/swapfile.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/swapfile.c +1 -1
index 2c33ff456ed5..0e23c123a545 100644
@@ -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)
Signature · 1 line
2.17.1