]> git.ipfire.org Git - thirdparty/linux.git/commit
block: add a str_to_blk_op helper
authorChristoph Hellwig <hch@lst.de>
Thu, 11 Jun 2026 14:06:46 +0000 (16:06 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 12 Jun 2026 16:40:35 +0000 (10:40 -0600)
commitd39a63ead381c7ee93cd938ea2d759c17343b522
tree2f8f773e3c73e531a7958f21776acd61fe02711c
parentce351560b714403acfdeed86ef96675d229da837
block: add a str_to_blk_op helper

Add a helper to find the REQ_OP_XYZ constant from the "XYZ" string.
This will be used for the error injection debugfs interface.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Hannes Reinecke <hare@kernel.org>
Reviewed-by: Md Haris Iqbal <haris.iqbal@linux.dev>
Link: https://patch.msgid.link/20260611140703.2401204-4-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c
block/blk.h