mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08:00
mm: swap: remove stale comment stale comment in cluster_alloc_swap_entry()
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>
This commit is contained in:
parent
152c1339dc
commit
8678d1faf1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user