mm/swapfile.c: fix comments for swapcache_prepare
authorChen Wandun <chenwandun@huawei.com>
Thu, 2 Apr 2020 04:06:07 +0000 (21:06 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 2 Apr 2020 16:35:27 +0000 (09:35 -0700)
commit3eeba1356dfc114e5fed3d05288a5bda0425927f
tree7eed5d177b2808bb961bc30c92aec6260db72560
parentdf3a0a21b698d68ba046d5ed185a4990b06d19a8
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>
mm/swapfile.c