提交 3eeba135 编写于 作者: C Chen Wandun 提交者: Linus Torvalds

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: NChen Wandun <chenwandun@huawei.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Reviewed-by: NAndrew Morton <akpm@linux-foundation.org>
Link: http://lkml.kernel.org/r/20200212145754.27123-1-chenwandun@huawei.comSigned-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 df3a0a21
...@@ -3475,7 +3475,7 @@ int swap_duplicate(swp_entry_t entry) ...@@ -3475,7 +3475,7 @@ int swap_duplicate(swp_entry_t entry)
* *
* Called when allocating swap cache for existing swap entry, * Called when allocating swap cache for existing swap entry,
* This can return error codes. Returns 0 at success. * 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(). * Note: return code is different from swap_duplicate().
*/ */
int swapcache_prepare(swp_entry_t entry) int swapcache_prepare(swp_entry_t entry)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册