]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
mm: swap: remove stale comment stale comment in cluster_alloc_swap_entry()
authorKemeng Shi <shikemeng@huaweicloud.com>
Thu, 22 May 2025 12:25:54 +0000 (20:25 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 25 Jul 2025 02:12:34 +0000 (19:12 -0700)
As cluster_next_cpu was already dropped, the associated comment is stale
now.

Link: https://lkml.kernel.org/r/20250522122554.12209-5-shikemeng@huaweicloud.com
Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com>
Reviewed-by: Kairui Song <kasong@tencent.com>
Reviewed-by: Baoquan He <bhe@redhat.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/swapfile.c

index 4f47ec9118f84af1a33eb0f82e9b706ccd2d88d9..b4f3cc71258049badb3058e4f7661dfce894e69a 100644 (file)
@@ -956,9 +956,8 @@ new_cluster:
        }
 
        /*
-        * We don't have free cluster but have some clusters in
-        * discarding, do discard now and reclaim them, then
-        * reread cluster_next_cpu since we dropped si->lock
+        * We don't have free cluster but have some clusters in discarding,
+        * do discard now and reclaim them.
         */
        if ((si->flags & SWP_PAGE_DISCARD) && swap_do_scheduled_discard(si))
                goto new_cluster;