projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
552eee3
)
md/raid1: Use the new blk_opf_t type
author
Bart Van Assche
<bvanassche@acm.org>
Thu, 14 Jul 2022 18:07:00 +0000
(11:07 -0700)
committer
Jens Axboe
<axboe@kernel.dk>
Thu, 14 Jul 2022 18:14:31 +0000
(12:14 -0600)
Improve static type checking by using the new blk_opf_t type for
variables that represent request flags.
Acked-by: Song Liu <song@kernel.org>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link:
https://lore.kernel.org/r/20220714180729.1065367-35-bvanassche@acm.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/raid1.c
patch
|
blob
|
history
diff --git
a/drivers/md/raid1.c
b/drivers/md/raid1.c
index 8f1a2e4a6e508ab732ac355eab9db4fa301da36c..05d8438cfec88d4f2d64cac9ae517b5968b22d88 100644
(file)
--- a/
drivers/md/raid1.c
+++ b/
drivers/md/raid1.c
@@
-1220,8
+1220,8
@@
static void raid1_read_request(struct mddev *mddev, struct bio *bio,
struct raid1_info *mirror;
struct bio *read_bio;
struct bitmap *bitmap = mddev->bitmap;
- const
int
op = bio_op(bio);
- const
unsigned long do_sync = (bio->bi_opf & REQ_SYNC)
;
+ const
enum req_op
op = bio_op(bio);
+ const
blk_opf_t do_sync = bio->bi_opf & REQ_SYNC
;
int max_sectors;
int rdisk;
bool r1bio_existed = !!r1_bio;