Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

block: Update a comment of disk statistics

>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>

authored by

Tang Yizhou and committed by
Jens Axboe
510d7664 98b7bf54

+2 -2
+2 -2
include/linux/part_stat.h
··· 17 17 /* 18 18 * Macros to operate on percpu disk statistics: 19 19 * 20 - * {disk|part|all}_stat_{add|sub|inc|dec}() modify the stat counters and should 21 - * be called between disk_stat_lock() and disk_stat_unlock(). 20 + * part_stat_{add|sub|inc|dec}() modify the stat counters and should 21 + * be called between part_stat_lock() and part_stat_unlock(). 22 22 * 23 23 * part_stat_read() can be called at any time. 24 24 */