summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoungjun Park <youngjun.park@lge.com>2025-10-31 15:50:09 +0900
committerAndrew Morton <akpm@linux-foundation.org>2025-11-24 15:08:56 -0800
commitf1bae15c6ad59870eca7824c66e40ee7469ee0fd (patch)
treecf2a25f47623557af0a0afcb6550005c313b0029
parent68f78bf55b2407947be2be7f854d1310cff607d9 (diff)
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>
-rw-r--r--mm/swap_state.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/mm/swap_state.c b/mm/swap_state.c
index b2230f8a48fc..5f97c6ae70a2 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,