Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a5040c2d authored by Souvik Banerjee's avatar Souvik Banerjee Committed by Jens Axboe
Browse files

blktrace: fix comment in blktrace_api.h



The `__u64 time` field of the blk_io_trace struct refers to
the time in nanoseconds, not in microseconds. It is set in
__blk_add_trace, which does the following:

    t->time = ktime_to_ns(ktime_get());

ktime_to_ns returns ktime_t in nanoseconds, not microseconds.

Signed-off-by: default avatarSouvik Banerjee <souvik1997@gmail.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent b65125fa
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -101,7 +101,7 @@ enum blktrace_notify {
struct blk_io_trace {
	__u32 magic;		/* MAGIC << 8 | version */
	__u32 sequence;		/* event number */
	__u64 time;		/* in microseconds */
	__u64 time;		/* in nanoseconds */
	__u64 sector;		/* disk offset */
	__u32 bytes;		/* transfer length */
	__u32 action;		/* what happened */