From: Youngjun Park Date: Fri, 31 Oct 2025 06:50:09 +0000 (+0900) Subject: mm, swap: remove redundant comment for read_swap_cache_async X-Git-Tag: v6.19-rc1~112^2~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f1bae15c6ad59870eca7824c66e40ee7469ee0fd;p=thirdparty%2Flinux.git 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 Reviewed-by: Baoquan He Cc: Barry Song Cc: Chris Li Cc: Kairui Song Cc: Kemeng Shi Cc: Nhat Pham Signed-off-by: Andrew Morton --- diff --git a/mm/swap_state.c b/mm/swap_state.c index b2230f8a48fc2..5f97c6ae70a2f 100644 --- a/mm/swap_state.c +++ b/mm/swap_state.c @@ -509,10 +509,6 @@ put_and_return: * and reading the disk if it is not already cached. * A failure return means that either the page allocation failed or that * the swap entry is no longer in use. - * - * get/put_swap_device() aren't needed to call this function, because - * __read_swap_cache_async() call them and swap_read_folio() holds the - * swap cache folio lock. */ struct folio *read_swap_cache_async(swp_entry_t entry, gfp_t gfp_mask, struct vm_area_struct *vma, unsigned long addr,