diff options
author | Bart Van Assche <bvanassche@acm.org> | 2022-07-14 11:07:29 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-07-14 12:14:33 -0600 |
commit | e46b5970496705127f9ae494c66e0242773097e8 (patch) | |
tree | 25a730b1a4aa7adca726f2a7545aee30886cbe68 /fs/zonefs | |
parent | d03025aef8676e826b69f8e3ec9bb59a5ad0c31d (diff) | |
download | lwn-e46b5970496705127f9ae494c66e0242773097e8.tar.gz lwn-e46b5970496705127f9ae494c66e0242773097e8.zip |
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: Johannes Thumshirn <jth@kernel.org>
Reviewed-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Cc: Naohiro Aota <naohiro.aota@wdc.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20220714180729.1065367-64-bvanassche@acm.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/zonefs')
-rw-r--r-- | fs/zonefs/trace.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/zonefs/trace.h b/fs/zonefs/trace.h index 21501da764bd..42edcfd393ed 100644 --- a/fs/zonefs/trace.h +++ b/fs/zonefs/trace.h @@ -25,7 +25,7 @@ TRACE_EVENT(zonefs_zone_mgmt, TP_STRUCT__entry( __field(dev_t, dev) __field(ino_t, ino) - __field(int, op) + __field(enum req_op, op) __field(sector_t, sector) __field(sector_t, nr_sectors) ), |