diff options
author | Bart Van Assche <bvanassche@acm.org> | 2022-07-14 11:06:47 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-07-14 12:14:31 -0600 |
commit | 581075e4f6475bb97c73ecccf68636a9453a31fd (patch) | |
tree | 70f8bc0813887f294b9658ae352550be14cf83e7 /drivers/md/dm-snap-persistent.c | |
parent | 7ee1de6e2712efabe8e6cab8db5238ed13643dc1 (diff) | |
download | linux-stable-581075e4f6475bb97c73ecccf68636a9453a31fd.tar.gz linux-stable-581075e4f6475bb97c73ecccf68636a9453a31fd.tar.bz2 linux-stable-581075e4f6475bb97c73ecccf68636a9453a31fd.zip |
dm/core: Reduce the size of struct dm_io_request
Combine the bi_op and bi_op_flags into the bi_opf member. Use the new
blk_opf_t type to improve static type checking. This patch does not
change any functionality.
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-22-bvanassche@acm.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/dm-snap-persistent.c')
-rw-r--r-- | drivers/md/dm-snap-persistent.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/md/dm-snap-persistent.c b/drivers/md/dm-snap-persistent.c index 3bb5cff5d6fc..eaf969de3d3a 100644 --- a/drivers/md/dm-snap-persistent.c +++ b/drivers/md/dm-snap-persistent.c @@ -235,8 +235,7 @@ static int chunk_io(struct pstore *ps, void *area, chunk_t chunk, int op, .count = ps->store->chunk_size, }; struct dm_io_request io_req = { - .bi_op = op, - .bi_op_flags = op_flags, + .bi_opf = op | op_flags, .mem.type = DM_IO_VMA, .mem.ptr.vma = area, .client = ps->io_client, |