From b37fa37cbff0ce96e8ddbbee3f8b946400385090 Mon Sep 17 00:00:00 2001 From: Baoquan He Date: Fri, 7 Feb 2025 10:50:37 +0800 Subject: [PATCH] mm/swapfile.c: update the code comment above swap_count_continued() Now, swap_count_continued() has two callers, __swap_duplicate() and __swap_entry_free_locked(), the relevant code comment is stale. Update it to reflect the current situation. Link: https://lkml.kernel.org/r/Z6V0/UvG1fvkQ4t/@fedora Signed-off-by: Baoquan He Cc: Chris Li Cc: Kairui Song Signed-off-by: Andrew Morton --- mm/swapfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/swapfile.c b/mm/swapfile.c index 0ec49d9c65f9..08debaacbbc0 100644 --- a/mm/swapfile.c +++ b/mm/swapfile.c @@ -3798,7 +3798,7 @@ outer: * when the original swap_map count is decremented from 0 with continuation, * borrow from the continuation and report whether it still holds more. * Called while __swap_duplicate() or caller of __swap_entry_free_locked() - * holds swap or cluster lock. + * holds cluster lock. */ static bool swap_count_continued(struct swap_info_struct *si, pgoff_t offset, unsigned char count) -- 2.50.1