Skip to content

Commit c1389b3

Browse files
bvanasscheaxboe
authored andcommitted
dm mirror log: Use the new blk_opf_t type
Improve static type checking by using the new blk_opf_t type for a function argument that represents a request operation type. Cc: Alasdair Kergon <[email protected]> Cc: Mike Snitzer <[email protected]> Cc: Mikulas Patocka <[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]>
1 parent c9154a4 commit c1389b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/md/dm-log.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ static void header_from_disk(struct log_header_core *core, struct log_header_dis
291291
core->nr_regions = le64_to_cpu(disk->nr_regions);
292292
}
293293

294-
static int rw_header(struct log_c *lc, int op)
294+
static int rw_header(struct log_c *lc, enum req_op op)
295295
{
296296
lc->io_req.bi_opf = op;
297297

0 commit comments

Comments
 (0)