OpenCloudOS-Kernel/drivers/nvme/host
Christoph Hellwig 05bdb99653 block: replace fmode_t with a block-specific type for block open flags
The only overlap between the block open flags mapped into the fmode_t and
other uses of fmode_t are FMODE_READ and FMODE_WRITE.  Define a new
blk_mode_t instead for use in blkdev_get_by_{dev,path}, ->open and
->ioctl and stop abusing fmode_t.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Jack Wang <jinpu.wang@ionos.com>		[rnbd]
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Christian Brauner <brauner@kernel.org>
Link: https://lore.kernel.org/r/20230608110258.189493-28-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2023-06-12 08:04:05 -06:00
..
Kconfig nvme-auth: Diffie-Hellman key exchange support 2022-08-02 17:14:49 -06:00
Makefile nvme: don't always build constants.o 2022-08-02 17:22:48 -06:00
apple.c nvme-apple: return directly instead of else 2023-04-13 08:55:06 +02:00
auth.c block-6.3-2023-03-03 2023-03-03 10:21:39 -08:00
constants.c nvme: add nvme_opcode_str function for all nvme cmd types 2023-02-01 14:22:00 +01:00
core.c block: replace fmode_t with a block-specific type for block open flags 2023-06-12 08:04:05 -06:00
fabrics.c driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
fabrics.h nvme-fabrics: show well known discovery name 2023-02-28 06:14:44 -07:00
fault_inject.c block: remove the ->rq_disk field in struct request 2021-11-29 06:41:29 -07:00
fc.c drivers: remove struct module * setting from struct class 2023-03-17 15:16:27 +01:00
fc.h nvme-fc: Update header and host for common definitions for LS handling 2020-05-09 16:18:33 -06:00
hwmon.c nvme-hwmon: kmalloc the NVME SMART log buffer 2022-10-19 12:43:13 +02:00
ioctl.c block: replace fmode_t with a block-specific type for block open flags 2023-06-12 08:04:05 -06:00
multipath.c block: replace fmode_t with a block-specific type for block open flags 2023-06-12 08:04:05 -06:00
nvme.h block: replace fmode_t with a block-specific type for block open flags 2023-06-12 08:04:05 -06:00
pci.c for-6.4/block-2023-04-21 2023-04-26 12:52:58 -07:00
rdma.c blk-mq-rdma: remove queue mapping helper for rdma devices 2023-04-13 08:59:05 +02:00
tcp.c for-6.4/block-2023-04-21 2023-04-26 12:52:58 -07:00
trace.c nvme: implement In-Band authentication 2022-08-02 17:14:49 -06:00
trace.h nvme: fix async event trace event 2023-04-13 08:59:04 +02:00
zns.c block: pass a gendisk to blk_queue_max_open_zones and blk_queue_max_active_zones 2022-07-06 06:46:26 -06:00