From: Chen Wandun Date: Thu, 2 Apr 2020 04:06:07 +0000 (-0700) Subject: mm/swapfile.c: fix comments for swapcache_prepare X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=3eeba1356dfc114e5fed3d05288a5bda0425927f;p=linux.git 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: Chen Wandun Signed-off-by: Andrew Morton Reviewed-by: Andrew Morton Link: http://lkml.kernel.org/r/20200212145754.27123-1-chenwandun@huawei.com Signed-off-by: Linus Torvalds --- diff --git a/mm/swapfile.c b/mm/swapfile.c index be33e6176cd90..6d63bd9b7da26 100644 --- a/mm/swapfile.c +++ b/mm/swapfile.c @@ -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)