]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
block: Fix the type of the second bdev_op_is_zoned_write() argument
authorBart Van Assche <bvanassche@acm.org>
Wed, 17 May 2023 17:42:21 +0000 (10:42 -0700)
committerRoxana Nicolescu <roxana.nicolescu@canonical.com>
Mon, 2 Oct 2023 15:19:29 +0000 (17:19 +0200)
commitfa02e2fe382d1f0441f06f3a10cfb83ae808b9c3
tree6b455c2e68b6121cdf9a7d8025df75a96b449d77
parentbb31d95288021fa07368954c4254b60ffe9c6edd
block: Fix the type of the second bdev_op_is_zoned_write() argument

BugLink: https://bugs.launchpad.net/bugs/2034469
[ Upstream commit 3ddbe2a7e0d4a155a805f69c906c9beed30d4cc4 ]

Change the type of the second argument of bdev_op_is_zoned_write() from
blk_opf_t into enum req_op because this function expects an operation
without flags as second argument.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Pankaj Raghav <p.raghav@samsung.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Cc: Ming Lei <ming.lei@redhat.com>
Fixes: 8cafdb5ab94c ("block: adapt blk_mq_plug() to not plug for writes that require a zone lock")
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20230517174230.897144-4-bvanassche@acm.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
include/linux/blkdev.h