diff options
author | Bart Van Assche <bvanassche@acm.org> | 2022-07-14 11:06:44 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-07-14 12:14:31 -0600 |
commit | bc0421ea44b82d2108bcf79e020498c5ff0000af (patch) | |
tree | 12339042f28b4b63749a3246d7c2cb1d1fa71873 /drivers | |
parent | 6c5412e268340e0d98eade4571658bacb4652176 (diff) | |
download | linux-stable-bc0421ea44b82d2108bcf79e020498c5ff0000af.tar.gz linux-stable-bc0421ea44b82d2108bcf79e020498c5ff0000af.tar.bz2 linux-stable-bc0421ea44b82d2108bcf79e020498c5ff0000af.zip |
block/zram: Use enum req_op where appropriate
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/block/zram/zram_drv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/zram/zram_drv.c b/drivers/block/zram/zram_drv.c index a35b86c58aa2..4abeb261b833 100644 --- a/drivers/block/zram/zram_drv.c +++ b/drivers/block/zram/zram_drv.c @@ -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; |