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: remove redundant comment for read_swap_cache_async

The function now manages get/put_swap_device() internally, making the
comment explaining this behavior to callers unnecessary.

Link: https://lkml.kernel.org/r/20251031065011.40863-4-youngjun.park@lge.com
Signed-off-by: Youngjun Park <youngjun.park@lge.com>
Reviewed-by: Baoquan He <bhe@redhat.com>
Cc: Barry Song <baohua@kernel.org>
Cc: Chris Li <chrisl@kernel.org>
Cc: Kairui Song <kasong@tencent.com>
Cc: Kemeng Shi <shikemeng@huaweicloud.com>
Cc: Nhat Pham <nphamcs@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Youngjun Park and committed by
Andrew Morton
f1bae15c 68f78bf5

-4
-4
mm/swap_state.c
··· 509 509 * and reading the disk if it is not already cached. 510 510 * A failure return means that either the page allocation failed or that 511 511 * the swap entry is no longer in use. 512 - * 513 - * get/put_swap_device() aren't needed to call this function, because 514 - * __read_swap_cache_async() call them and swap_read_folio() holds the 515 - * swap cache folio lock. 516 512 */ 517 513 struct folio *read_swap_cache_async(swp_entry_t entry, gfp_t gfp_mask, 518 514 struct vm_area_struct *vma, unsigned long addr,