From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 57BC58F70 for ; Sun, 16 Jul 2023 19:53:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A0EDBC433C7; Sun, 16 Jul 2023 19:53:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1689537212; bh=uD9fgh1Ctw0wf5mPtyPbdIBYrqfeEYr/4nZiGttqgWM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PWmNnoT1D0Z+SQG/OxbmNMGOijpTJItWUpXvA9TEXPSiV11pEAqNnHepMha/ppCC2 hrJHRFMYGEZ0EUoHKpq2BPYIS8grp4kfEOq5gpJ/r3+hfDvAgkTcxx+2Pso8MLeTKU Ms4N/qq6V7j/lapDGOkzOFy4zfKokKKbrOlp6jtQ= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Johannes Thumshirn , Pankaj Raghav , Christoph Hellwig , Damien Le Moal , Hannes Reinecke , Ming Lei , Bart Van Assche , Jens Axboe , Sasha Levin Subject: [PATCH 6.4 016/800] block: Fix the type of the second bdev_op_is_zoned_write() argument Date: Sun, 16 Jul 2023 21:37:49 +0200 Message-ID: <20230716194949.482129168@linuxfoundation.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230716194949.099592437@linuxfoundation.org> References: <20230716194949.099592437@linuxfoundation.org> User-Agent: quilt/0.67 Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Bart Van Assche [ 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 Reviewed-by: Pankaj Raghav Reviewed-by: Christoph Hellwig Reviewed-by: Damien Le Moal Reviewed-by: Hannes Reinecke Cc: Ming Lei Fixes: 8cafdb5ab94c ("block: adapt blk_mq_plug() to not plug for writes that require a zone lock") Signed-off-by: Bart Van Assche Link: https://lore.kernel.org/r/20230517174230.897144-4-bvanassche@acm.org Signed-off-by: Jens Axboe Signed-off-by: Sasha Levin --- include/linux/blkdev.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index c0ffe203a6022..be9d7d8237b33 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -1282,7 +1282,7 @@ static inline unsigned int bdev_zone_no(struct block_device *bdev, sector_t sec) } static inline bool bdev_op_is_zoned_write(struct block_device *bdev, - blk_opf_t op) + enum req_op op) { if (!bdev_is_zoned(bdev)) return false; -- 2.39.2