Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

md/raid5: Use the enum req_op and blk_opf_t types

Improve static type checking by using the enum req_op type for variables
that represent a request operation and 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-37-bvanassche@acm.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Bart Van Assche and committed by
Jens Axboe
a9010741 cb1802ff

+2 -1
+2 -1
drivers/md/raid5.c
··· 1082 1082 should_defer = conf->batch_bio_dispatch && conf->group_cnt; 1083 1083 1084 1084 for (i = disks; i--; ) { 1085 - int op, op_flags = 0; 1085 + enum req_op op; 1086 + blk_opf_t op_flags = 0; 1086 1087 int replace_only = 0; 1087 1088 struct bio *bi, *rbi; 1088 1089 struct md_rdev *rdev, *rrdev = NULL;