mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 17:13:52 +02:00
mm/swapfile.c: remove the incorrect code comment
Since commit eb085574a7 ("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>
This commit is contained in:
parent
c523aa8907
commit
4ccd4154fa
|
|
@ -3529,7 +3529,6 @@ void si_swapinfo(struct sysinfo *val)
|
|||
* Returns error code in following case.
|
||||
* - success -> 0
|
||||
* - swp_entry is invalid -> EINVAL
|
||||
* - swp_entry is migration entry -> EINVAL
|
||||
* - swap-cache reference is requested but there is already one. -> EEXIST
|
||||
* - swap-cache reference is requested but the entry is not used. -> ENOENT
|
||||
* - swap-mapped reference requested but needs continued swap count. -> ENOMEM
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user