mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 12:44:03 +02:00
fs, block: move blk_mode_t and fop_flags_t into <linux/types.h>
blk_mode_t and fop_flags_t are both plain 'unsigned int __bitwise' flag typedefs, exactly like the gfp_t, slab_flags_t and fmode_t that already live in <linux/types.h>. Move them there so they are available everywhere without having to drag in a subsystem header. Reviewed-by: Jan Kara <jack@suse.cz> Link: https://patch.msgid.link/20260616-work-super-bdev_holder_global-v2-4-7df6b864028e@kernel.org Tested-by: syzbot@syzkaller.appspotmail.com Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
This commit is contained in:
parent
9c486f2899
commit
abc410fc6d
|
|
@ -126,8 +126,6 @@ struct blk_integrity {
|
|||
unsigned char pi_tuple_size;
|
||||
};
|
||||
|
||||
typedef unsigned int __bitwise blk_mode_t;
|
||||
|
||||
/* open for reading */
|
||||
#define BLK_OPEN_READ ((__force blk_mode_t)(1 << 0))
|
||||
/* open for writing */
|
||||
|
|
|
|||
|
|
@ -1916,8 +1916,6 @@ struct dir_context {
|
|||
struct io_uring_cmd;
|
||||
struct offset_ctx;
|
||||
|
||||
typedef unsigned int __bitwise fop_flags_t;
|
||||
|
||||
struct file_operations {
|
||||
struct module *owner;
|
||||
fop_flags_t fop_flags;
|
||||
|
|
|
|||
|
|
@ -163,6 +163,8 @@ typedef u32 dma_addr_t;
|
|||
typedef unsigned int __bitwise gfp_t;
|
||||
typedef unsigned int __bitwise slab_flags_t;
|
||||
typedef unsigned int __bitwise fmode_t;
|
||||
typedef unsigned int __bitwise blk_mode_t;
|
||||
typedef unsigned int __bitwise fop_flags_t;
|
||||
|
||||
#ifdef CONFIG_PHYS_ADDR_T_64BIT
|
||||
typedef u64 phys_addr_t;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user