]> git.baikalelectronics.ru Git - kernel.git/commit
block: Use enum req_op where appropriate
authorBart Van Assche <bvanassche@acm.org>
Thu, 14 Jul 2022 18:06:28 +0000 (11:06 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 14 Jul 2022 18:14:30 +0000 (12:14 -0600)
commit9438a428d41a6ea4c0a18adbcc864f7d2840f54e
treeec8e7f3091e3fb7d031f2671365ad6d126ee6999
parent48fd9be3c32ff723b9a7b4be0cfd24da0c7f78e2
block: Use enum req_op where appropriate

Change the type of the arguments that are used to pass a REQ_OP_* value
from int or unsigned int into enum req_op to improve static type
checking.

Cc: Christoph Hellwig <hch@lst.de>
Cc: Ming Lei <ming.lei@redhat.com>
Cc: Hannes Reinecke <hare@suse.de>
Cc: Damien Le Moal <damien.lemoal@wdc.com>
Cc: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20220714180729.1065367-3-bvanassche@acm.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c
block/blk-mq-debugfs.c
block/blk-throttle.c
block/blk-wbt.c
block/blk.h
include/linux/blk_types.h
include/linux/blkdev.h