Commit 3eeba135 authored by Chen Wandun's avatar Chen Wandun Committed by Linus Torvalds
Browse files

mm/swapfile.c: fix comments for swapcache_prepare

The -EEXIST returned by __swap_duplicate means there is a swap cache
instead -EBUSY
Signed-off-by: default avatarChen Wandun <>
Signed-off-by: default avatarAndrew Morton <>
Reviewed-by: default avatarAndrew Morton <>

Signed-off-by: default avatarLinus Torvalds <>
parent df3a0a21
......@@ -3475,7 +3475,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)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment