]> git.baikalelectronics.ru Git - kernel.git/commitdiff
fs/zonefs: Use the enum req_op type for tracing request operations
authorBart Van Assche <bvanassche@acm.org>
Thu, 14 Jul 2022 18:07:29 +0000 (11:07 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 14 Jul 2022 18:14:33 +0000 (12:14 -0600)
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>
fs/zonefs/trace.h

index 21501da764bd370a8bab59aceebb66d5b09a6e85..42edcfd393ed25d50821d831c6d703818c49a4eb 100644 (file)
@@ -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)
            ),