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

block/brd: Use the enum req_op type

Improve static type checking by using the enum req_op type for a
function argument that represents a request operation.

Cc: Christoph Hellwig <hch@lst.de>
Cc: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20220714180729.1065367-13-bvanassche@acm.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Bart Van Assche and committed by
Jens Axboe
ba91fd01 919dbca8

+1 -1
+1 -1
drivers/block/brd.c
··· 256 256 * Process a single bvec of a bio. 257 257 */ 258 258 static int brd_do_bvec(struct brd_device *brd, struct page *page, 259 - unsigned int len, unsigned int off, unsigned int op, 259 + unsigned int len, unsigned int off, enum req_op op, 260 260 sector_t sector) 261 261 { 262 262 void *mem;