]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
mm/page-writeback.c: Update comment for BANDWIDTH_INTERVAL
authorTang Yizhou <yizhou.tang@shopee.com>
Wed, 9 Oct 2024 15:17:27 +0000 (23:17 +0800)
committerChristian Brauner <brauner@kernel.org>
Tue, 22 Oct 2024 09:16:58 +0000 (11:16 +0200)
The name of the BANDWIDTH_INTERVAL macro is misleading, as it is not
only used in the bandwidth update functions wb_update_bandwidth() and
__wb_update_bandwidth(), but also in the dirty limit update function
domain_update_dirty_limit().

Currently, we haven't found an ideal name, so update the comment only.

Signed-off-by: Tang Yizhou <yizhou.tang@shopee.com>
Link: https://lore.kernel.org/r/20241009151728.300477-2-yizhou.tang@shopee.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
mm/page-writeback.c

index fcd4c1439cb9c3b89e8ec79a4404d728826cf586..c7c6b58a8461ca0560efbed003c679b4385e97b8 100644 (file)
@@ -54,7 +54,7 @@
 #define DIRTY_POLL_THRESH      (128 >> (PAGE_SHIFT - 10))
 
 /*
- * Estimate write bandwidth at 200ms intervals.
+ * Estimate write bandwidth or update dirty limit at 200ms intervals.
  */
 #define BANDWIDTH_INTERVAL     max(HZ/5, 1)