]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/swapfile.c: remove the incorrect code comment
authorBaoquan He <bhe@redhat.com>
Wed, 5 Feb 2025 09:27:20 +0000 (17:27 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 4 Mar 2025 05:49:41 +0000 (21:49 -0800)
commitf83bd24e3d22838de63e856f4e52234a1ed518d4
tree5ff7f1d2a6e200bbe45c7d4c942b36bc658e28d9
parentc2bc9183e99e755f266eec4ea08d11d58ef962c8
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>
mm/swapfile.c