aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorKemeng Shi <shikemeng@huaweicloud.com>2025-02-23 00:08:50 +0800
committerAndrew Morton <akpm@linux-foundation.org>2025-03-16 22:06:40 -0700
commit0a8a5b6c4129e61070eb9a45979c395fb6ab31c4 (patch)
treebc77a5764a7792568ace46daf40314c84e1e6dbf
parentmm, swap: correct comment in swap_usage_sub() (diff)
downloadwireguard-linux-0a8a5b6c4129e61070eb9a45979c395fb6ab31c4.tar.xz
wireguard-linux-0a8a5b6c4129e61070eb9a45979c395fb6ab31c4.zip
mm: swap: remove stale comment of swap_reclaim_full_clusters()
swap_reclaim_full_clusters() has no return value now, just remove the stale comment which says swap_reclaim_full_clusters() wil return a bool value. Link: https://lkml.kernel.org/r/20250222160850.505274-7-shikemeng@huaweicloud.com Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com> Cc: Kairui Song <ryncsn@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-rw-r--r--mm/swapfile.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/mm/swapfile.c b/mm/swapfile.c
index dc9f93b66f69..a7f60006c52c 100644
--- a/mm/swapfile.c
+++ b/mm/swapfile.c
@@ -820,7 +820,6 @@ out:
return found;
}
-/* Return true if reclaimed a whole cluster */
static void swap_reclaim_full_clusters(struct swap_info_struct *si, bool force)
{
long to_scan = 1;