diff options
author | 2024-04-12 01:15:55 -0400 | |
---|---|---|
committer | 2024-05-02 19:50:29 -0400 | |
commit | 01e198f01d55880b79d8f5ac73064ff30a89d98a (patch) | |
tree | 5ba9d3b7f62832b90d82a3c2f7b54d222ee6f6e6 /include/linux/blk_types.h | |
parent | bdev: infrastructure for flags (diff) | |
download | wireguard-linux-01e198f01d55880b79d8f5ac73064ff30a89d98a.tar.xz wireguard-linux-01e198f01d55880b79d8f5ac73064ff30a89d98a.zip |
bdev: move ->bd_read_only to ->__bd_flags
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 04f92737ab08..f70dd31cbcd1 100644 --- a/include/linux/blk_types.h +++ b/include/linux/blk_types.h @@ -47,7 +47,7 @@ struct block_device { unsigned long bd_stamp; atomic_t __bd_flags; // partition number + flags #define BD_PARTNO 255 // lower 8 bits; assign-once - bool bd_read_only; /* read-only policy */ +#define BD_READ_ONLY (1u<<8) // read-only policy bool bd_write_holder; bool bd_has_submit_bio; dev_t bd_dev; |