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
..
2023-04-11 19:05:19 -07:00
2022-01-15 16:30:29 +02:00
2021-10-22 16:00:31 -07:00
2023-01-19 09:24:28 +01:00
2023-05-24 08:42:16 -06:00
2023-06-05 10:53:04 -06:00
2023-02-28 16:08:30 -08:00
2023-02-20 11:53:11 -08:00
2023-06-05 10:53:04 -06:00
2022-10-10 20:32:10 -07:00
2022-05-11 17:01:22 +10:00
2023-05-24 08:42:16 -06:00
2021-08-19 10:07:14 -07:00
2023-03-06 09:57:12 +01:00