block: add blk_time_get_ns() and blk_time_get() helpers
authorJens Axboe <axboe@kernel.dk>
Mon, 15 Jan 2024 21:45:07 +0000 (14:45 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 26 Jan 2024 21:37:17 +0000 (14:37 -0700)
commit29bb740b66cc15175a119cd6fc59076580390116
tree82f3fd09a4b5285ece2c93b623b410ca736cafea
parent3ef826924303470507ccd6e84d34c901c1ee34da
block: add blk_time_get_ns() and blk_time_get() helpers

Convert any user of ktime_get_ns() to use blk_time_get_ns(), and
ktime_get() to blk_time_get(), so we have a unified API for querying the
current time in nanoseconds or as ktime.

No functional changes intended, this patch just wraps ktime_get_ns()
and ktime_get() with a block helper.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bfq-cgroup.c
block/bfq-iosched.c
block/blk-cgroup.c
block/blk-flush.c
block/blk-iocost.c
block/blk-iolatency.c
block/blk-mq.c
block/blk-throttle.c
block/blk-wbt.c
block/blk.h