summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorChen Wandun <chenwandun@huawei.com>2020-04-02 06:06:07 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2020-04-02 18:35:27 +0200
commit3eeba1356dfc114e5fed3d05288a5bda0425927f (patch)
tree7eed5d177b2808bb961bc30c92aec6260db72560 /mm
parentmm/gup: fix omission of check on FOLL_LONGTERM in gup fast path (diff)
downloadlinux-3eeba1356dfc114e5fed3d05288a5bda0425927f.tar.xz
linux-3eeba1356dfc114e5fed3d05288a5bda0425927f.zip
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 <chenwandun@huawei.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Link: http://lkml.kernel.org/r/20200212145754.27123-1-chenwandun@huawei.com Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
-rw-r--r--mm/swapfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/swapfile.c b/mm/swapfile.c
index be33e6176cd9..6d63bd9b7da2 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)