Commit 19ccdb04 authored by Kemeng Shi's avatar Kemeng Shi Committed by Zhihao Cheng
Browse files

fs/writeback: correct comment of __wakeup_flusher_threads_bdi

mainline inclusion
from mainline-next-20240508
commit ba679de9c3fc511f457ea0ad8f5a22e9152fa07b
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I9NOHO

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/fs?id=ba679de9c3fc511f457ea0ad8f5a22e9152fa07b



--------------------------------

Commit e8e8a0c6 ("writeback: move nr_pages == 0 logic to one
location") removed parameter nr_pages of __wakeup_flusher_threads_bdi
and we try to writeback all dirty pages in __wakeup_flusher_threads_bdi
now. Just correct stale comment.

Signed-off-by: default avatarKemeng Shi <shikemeng@huaweicloud.com>
Link: https://lore.kernel.org/r/20240228091958.288260-6-shikemeng@huaweicloud.com


Reviewed-by: default avatarJan Kara <jack@suse.cz>
Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
Signed-off-by: default avatarZhihao Cheng <chengzhihao@huaweicloud.com>
parent 2d155128
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -2307,8 +2307,7 @@ void wb_workfn(struct work_struct *work)
}

/*
 * Start writeback of `nr_pages' pages on this bdi. If `nr_pages' is zero,
 * write back the whole world.
 * Start writeback of all dirty pages on this bdi.
 */
static void __wakeup_flusher_threads_bdi(struct backing_dev_info *bdi,
					 enum wb_reason reason)