diff options
| author | Johannes Thumshirn <johannes.thumshirn@wdc.com> | 2025-10-22 13:41:03 +0200 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2025-10-22 11:14:05 -0600 |
| commit | 70e3c62b891281b94b9d449a381e033ce592acc8 (patch) | |
| tree | e91d453788d54e85a241e706e9aa5363fb6cd3c1 /include/uapi/linux/blktrace_api.h | |
| parent | 04678e72e95f4165d58442b3ed108e06605984df (diff) | |
blktrace: untangle if/else sequence in __blk_add_trace
Untangle the if/else sequence setting the trace action in
__blk_add_trace() and turn it into a switch statement for better
extensibility.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/uapi/linux/blktrace_api.h')
0 files changed, 0 insertions, 0 deletions
