linux-stable/fs
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
..
9p
adfs
affs
afs
autofs
befs
bfs
btrfs block: replace fmode_t with a block-specific type for block open flags 2023-06-12 08:04:05 -06:00
cachefiles
ceph
cifs
coda
configfs
cramfs
crypto
debugfs
devpts
dlm
ecryptfs
efivarfs
efs
erofs block: replace fmode_t with a block-specific type for block open flags 2023-06-12 08:04:05 -06:00
exfat
exportfs
ext2
ext4 block: replace fmode_t with a block-specific type for block open flags 2023-06-12 08:04:05 -06:00
f2fs block: replace fmode_t with a block-specific type for block open flags 2023-06-12 08:04:05 -06:00
fat
freevxfs
fscache
fuse
gfs2 gfs2: use __bio_add_page for adding single page to bio 2023-05-31 09:50:02 -06:00
hfs
hfsplus
hostfs
hpfs
hugetlbfs
iomap fs: iomap: use bio_add_folio_nofail where possible 2023-06-01 09:13:31 -06:00
isofs
jbd2
jffs2
jfs block: replace fmode_t with a block-specific type for block open flags 2023-06-12 08:04:05 -06:00
kernfs
ksmbd
lockd
minix
netfs
nfs block: replace fmode_t with a block-specific type for block open flags 2023-06-12 08:04:05 -06:00
nfs_common
nfsd
nilfs2 fs: remove sb->s_mode 2023-06-12 08:04:04 -06:00
nls
notify
ntfs
ntfs3
ocfs2 block: replace fmode_t with a block-specific type for block open flags 2023-06-12 08:04:05 -06:00
omfs
openpromfs
orangefs
overlayfs
proc
pstore init: improve the name_to_dev_t interface 2023-06-05 10:56:46 -06:00
qnx4
qnx6
quota
ramfs
reiserfs block: replace fmode_t with a block-specific type for block open flags 2023-06-12 08:04:05 -06:00
romfs
smbfs_common
squashfs
sysfs
sysv
tracefs
ubifs
udf
ufs
unicode
vboxsf
verity
xfs block: replace fmode_t with a block-specific type for block open flags 2023-06-12 08:04:05 -06:00
zonefs zonefs: use __bio_add_page for adding single page to bio 2023-05-31 09:50:02 -06:00
aio.c
anon_inodes.c
attr.c
bad_inode.c
binfmt_elf_fdpic.c
binfmt_elf_test.c
binfmt_elf.c
binfmt_flat.c
binfmt_misc.c
binfmt_script.c
buffer.c fs: buffer: use __bio_add_page to add single page to bio 2023-05-31 09:50:02 -06:00
char_dev.c
compat_binfmt_elf.c
coredump.c
d_path.c
dax.c
dcache.c
direct-io.c block: Use iov_iter_extract_pages() and page pinning in direct-io.c 2023-05-31 09:48:15 -06:00
drop_caches.c
eventfd.c
eventpoll.c
exec.c
fcntl.c
fhandle.c
file_table.c
file.c
filesystems.c
fs_context.c
fs_parser.c
fs_pin.c
fs_struct.c
fs_types.c
fs-writeback.c
fsopen.c
init.c
inode.c
internal.h
ioctl.c
Kconfig
Kconfig.binfmt
kernel_read_file.c
libfs.c
locks.c
Makefile
mbcache.c
mnt_idmapping.c
mount.h
mpage.c
namei.c
namespace.c
nsfs.c
open.c
pipe.c
pnode.c
pnode.h
posix_acl.c
proc_namespace.c
read_write.c
readdir.c
remap_range.c
select.c
seq_file.c
signalfd.c
splice.c
stack.c
stat.c
statfs.c
super.c fs: remove sb->s_mode 2023-06-12 08:04:04 -06:00
sync.c
sysctls.c
timerfd.c
userfaultfd.c
utimes.c
xattr.c