diff options
| author | Bart Van Assche <[email protected]> | 2022-07-14 11:07:00 -0700 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2022-07-14 12:14:31 -0600 |
| commit | 3c5e514db58fdca10ff5e08a5d2e8a4b077300e4 (patch) | |
| tree | 1910c0e9a226f3e2000c83b3d539848483409d25 | |
| parent | 552eee3b53f661b76e354ab2ba71e2a625cb9722 (diff) | |
md/raid1: Use the new blk_opf_t type
Improve static type checking by using the new blk_opf_t type for
variables that represent request flags.
Acked-by: Song Liu <[email protected]>
Signed-off-by: Bart Van Assche <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
| -rw-r--r-- | drivers/md/raid1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c index 8f1a2e4a6e50..05d8438cfec8 100644 --- 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; |