提交 e46b5970 编写于 作者: B Bart Van Assche 提交者: Jens Axboe

fs/zonefs: Use the enum req_op type for tracing request operations

Improve static type checking by using the enum req_op type for request
operations.
Reviewed-by: NJohannes Thumshirn <jth@kernel.org>
Reviewed-by: NDamien Le Moal <damien.lemoal@opensource.wdc.com>
Cc: Naohiro Aota <naohiro.aota@wdc.com>
Signed-off-by: NBart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20220714180729.1065367-64-bvanassche@acm.orgSigned-off-by: NJens Axboe <axboe@kernel.dk>
上级 d03025ae
...@@ -25,7 +25,7 @@ TRACE_EVENT(zonefs_zone_mgmt, ...@@ -25,7 +25,7 @@ TRACE_EVENT(zonefs_zone_mgmt,
TP_STRUCT__entry( TP_STRUCT__entry(
__field(dev_t, dev) __field(dev_t, dev)
__field(ino_t, ino) __field(ino_t, ino)
__field(int, op) __field(enum req_op, op)
__field(sector_t, sector) __field(sector_t, sector)
__field(sector_t, nr_sectors) __field(sector_t, nr_sectors)
), ),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册