]> 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>
Fri, 28 Feb 2025 00:59:50 +0000 (16:59 -0800)
commit20e3c63ad3232339ccd0f22d8b726d77a7668eeb
treefe5976c534480af8204fcc3e752090f0d4b81cc2
parentfdf665808ff40d5fec8d67f168e995d594a66de3
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