]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
block: Update a comment of disk statistics
authorTang Yizhou <yizhou.tang@shopee.com>
Tue, 23 Sep 2025 11:21:36 +0000 (19:21 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 2 Oct 2025 21:28:42 +0000 (15:28 -0600)
>From commit 074a7aca7afa ("block: move stats from disk to part0"),
we know that:

* {disk|all}_stat_*() are gone.

* disk_stat_lock/unlock() are renamed to part_stat_lock/unlock().

Therefore, outdated comments should be updated accordingly.

Fixes: 074a7aca7afa ("block: move stats from disk to part0")
Signed-off-by: Tang Yizhou <yizhou.tang@shopee.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/part_stat.h

index eeeff2a045296495c0190e2b71f60bbdcea1e3ae..729415e91215d60dc8c5d2dbb84ed739eb15a8c1 100644 (file)
@@ -17,8 +17,8 @@ struct disk_stats {
 /*
  * Macros to operate on percpu disk statistics:
  *
- * {disk|part|all}_stat_{add|sub|inc|dec}() modify the stat counters and should
- * be called between disk_stat_lock() and disk_stat_unlock().
+ * part_stat_{add|sub|inc|dec}() modify the stat counters and should
+ * be called between part_stat_lock() and part_stat_unlock().
  *
  * part_stat_read() can be called at any time.
  */