linux/fs/nfs/blocklayout
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
..
blocklayout.c fs/nfs: Use enum req_op where appropriate 2022-07-14 12:14:33 -06:00
blocklayout.h pnfs/blocklayout: pnfs_block_dev_map uses bytes, not sectors 2018-01-25 16:42:35 -05:00
dev.c block: replace fmode_t with a block-specific type for block open flags 2023-06-12 08:04:05 -06:00
extent_tree.c mm: remove the pgprot argument to __vmalloc 2020-06-02 10:59:11 -07:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
rpc_pipefs.c block: remove genhd.h 2022-02-02 07:49:59 -07:00