diff options
author | Jens Axboe <axboe@kernel.dk> | 2024-01-15 22:45:07 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-02-05 18:07:22 +0100 |
commit | 08420cf70cfb32eed2a0abfeb5c54c5651bd0c99 (patch) | |
tree | ee9a278750a711e90babcb73cbde53fd7b4fdcf1 /lib/packing.c | |
parent | block: move cgroup time handling code into blk.h (diff) | |
download | linux-08420cf70cfb32eed2a0abfeb5c54c5651bd0c99.tar.xz linux-08420cf70cfb32eed2a0abfeb5c54c5651bd0c99.zip |
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>
Diffstat (limited to 'lib/packing.c')
0 files changed, 0 insertions, 0 deletions