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/swap_state.c: remove the meaningless code comment

Since commit 8d93b41c09d1 ("mm: Convert add_to_swap_cache to XArray"),
there's no returned _EEXIT, so the code comment doesn't make sense any
more.

Link: https://lkml.kernel.org/r/20250205092721.9395-9-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
e89c45c7 a46a6bc2

-4
-4
mm/swap_state.c
··· 203 203 err = add_to_swap_cache(folio, entry, 204 204 __GFP_HIGH|__GFP_NOMEMALLOC|__GFP_NOWARN, NULL); 205 205 if (err) 206 - /* 207 - * add_to_swap_cache() doesn't return -EEXIST, so we can safely 208 - * clear SWAP_HAS_CACHE flag. 209 - */ 210 206 goto fail; 211 207 /* 212 208 * Normally the folio will be dirtied in unmap because its