]> git.baikalelectronics.ru Git - kernel.git/commit
dm/core: Combine request operation type and flags
authorBart Van Assche <bvanassche@acm.org>
Thu, 14 Jul 2022 18:06:49 +0000 (11:06 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 14 Jul 2022 18:14:31 +0000 (12:14 -0600)
commit3b3d9e500ebd8f34bf589b10457d8388a0e7c34d
tree65d7e9be048c4fb72dd5b68d537c1c4acf8e2a0c
parent93ce21a9f667a5c675eede4b77a737bd35d02dad
dm/core: Combine request operation type and flags

Improve kernel code uniformity by combining the request operation type and
flags into a single variable. Change 'int rw' into 'enum req_op op' because
the name 'op' is what is used in the block layer to hold a request type.
Use the blk_opf_t and enum req_op types where appropriate to improve static
type checking.

Cc: Alasdair Kergon <agk@redhat.com>
Cc: Mike Snitzer <snitzer@kernel.org>
Cc: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20220714180729.1065367-24-bvanassche@acm.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/dm-bufio.c
drivers/md/dm-io.c
drivers/md/dm.c