diff options
author | 2024-04-12 01:21:45 -0400 | |
---|---|---|
committer | 2024-05-02 20:00:37 -0400 | |
commit | ac2b6f9dee8f41d5e9162959a8bbd2c8047ee382 (patch) | |
tree | 1f28cb4449ce1258e6b0b793607bce2383ea5d87 /include/linux/blk_types.h | |
parent | bdev: move ->bd_write_holder into ->__bd_flags (diff) | |
download | wireguard-linux-ac2b6f9dee8f41d5e9162959a8bbd2c8047ee382.tar.xz wireguard-linux-ac2b6f9dee8f41d5e9162959a8bbd2c8047ee382.zip |
bdev: move ->bd_has_subit_bio to ->__bd_flags
In bdev_alloc() we have all flags initialized to false, so
assignment to ->bh_has_submit_bio n there is a no-op unless
we have partno != 0 and flag already set on entire device.
In device_add_disk() we have just allocated the block_device
in question and it had been a full-device one, so the flag
is guaranteed to be still clear when we get to assignment.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/blk_types.h')
-rw-r--r-- | include/linux/blk_types.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/blk_types.h b/include/linux/blk_types.h index e45a490d488e..11b9e8eeb79f 100644 --- a/include/linux/blk_types.h +++ b/include/linux/blk_types.h @@ -49,7 +49,7 @@ struct block_device { #define BD_PARTNO 255 // lower 8 bits; assign-once #define BD_READ_ONLY (1u<<8) // read-only policy #define BD_WRITE_HOLDER (1u<<9) - bool bd_has_submit_bio; +#define BD_HAS_SUBMIT_BIO (1u<<10) dev_t bd_dev; struct inode *bd_inode; /* will die */ |