]> git.baikalelectronics.ru Git - kernel.git/commitdiff
block/zram: Use enum req_op where appropriate
authorBart Van Assche <bvanassche@acm.org>
Thu, 14 Jul 2022 18:06:44 +0000 (11:06 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 14 Jul 2022 18:14:31 +0000 (12:14 -0600)
Improve static type checking by using the enum req_op type where
appropriate.

Cc: Minchan Kim <minchan@kernel.org>
Cc: Nitin Gupta <ngupta@vflare.org>
Cc: Sergey Senozhatsky <senozhatsky@chromium.org>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20220714180729.1065367-19-bvanassche@acm.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/zram/zram_drv.c

index a35b86c58aa25fb9c7e6ee0b16eb526bccc68b92..4abeb261b833da5b886d316a326d1ac8c5284184 100644 (file)
@@ -1523,7 +1523,7 @@ static void zram_bio_discard(struct zram *zram, u32 index,
  * Returns 1 if IO request was successfully submitted.
  */
 static int zram_bvec_rw(struct zram *zram, struct bio_vec *bvec, u32 index,
-                       int offset, unsigned int op, struct bio *bio)
+                       int offset, enum req_op op, struct bio *bio)
 {
        int ret;