Skip to content

Commit 510d766

Browse files
Tang Yizhouaxboe
authored andcommitted
block: Update a comment of disk statistics
>From commit 074a7ac ("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: 074a7ac ("block: move stats from disk to part0") Signed-off-by: Tang Yizhou <yizhou.tang@shopee.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 98b7bf5 commit 510d766

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/linux/part_stat.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ struct disk_stats {
1717
/*
1818
* Macros to operate on percpu disk statistics:
1919
*
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().
2222
*
2323
* part_stat_read() can be called at any time.
2424
*/

0 commit comments

Comments
 (0)