Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mm/swapfile.c: remove the incorrect code comment

Since commit eb085574a752 ("mm, swap: fix race between swapoff and some
swap operations"), the non_swap_entry() checking has been taken off from
function __swap_duplicate(). Hence, in the kernel-doc comment, the line
'swp_entry is migration entry -> EINVAL' is obsolete. Remove that line to
avoid misleading people.

Link: https://lkml.kernel.org/r/20250205092721.9395-12-bhe@redhat.com
Signed-off-by: Baoquan He <bhe@redhat.com>
Cc: Chris Li <chrisl@kernel.org>
Cc: Kairui Song <ryncsn@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Baoquan He and committed by
Andrew Morton
4ccd4154 c523aa89

-1
-1
mm/swapfile.c
··· 3529 3529 * Returns error code in following case. 3530 3530 * - success -> 0 3531 3531 * - swp_entry is invalid -> EINVAL 3532 - * - swp_entry is migration entry -> EINVAL 3533 3532 * - swap-cache reference is requested but there is already one. -> EEXIST 3534 3533 * - swap-cache reference is requested but the entry is not used. -> ENOENT 3535 3534 * - swap-mapped reference requested but needs continued swap count. -> ENOMEM