dm/dm-zoned: Use the enum req_op type
authorBart Van Assche <bvanassche@acm.org>
Thu, 14 Jul 2022 18:06:56 +0000 (11:06 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 14 Jul 2022 18:14:31 +0000 (12:14 -0600)
commit13a1f650b6ec935834977461b87585f6387257b4
treefcc9266f873075df6bf8371afa768645f246fc10
parent8a5a7ce8774ce9d2fb52df6ecb0d234cf76811d1
dm/dm-zoned: Use the enum req_op type

Improve static type checking by using the enum req_op type for arguments
that represent a request operation.

Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
Cc: Alasdair Kergon <agk@redhat.com>
Cc: Mike Snitzer <snitzer@kernel.org>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20220714180729.1065367-31-bvanassche@acm.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/dm-zoned-metadata.c
drivers/md/dm-zoned.h