diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2024-04-12 07:24:27 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2024-05-03 02:04:17 +0200 |
commit | 49a43dae93c8b0ee5c9797f7f407d1244dea8213 (patch) | |
tree | 5662d739452c972158da97011b17056a91e11a0e /block/blk-core.c | |
parent | bdev: move ->bd_has_subit_bio to ->__bd_flags (diff) | |
download | linux-49a43dae93c8b0ee5c9797f7f407d1244dea8213.tar.xz linux-49a43dae93c8b0ee5c9797f7f407d1244dea8213.zip |
bdev: move ->bd_ro_warned to ->__bd_flags
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'block/blk-core.c')
-rw-r--r-- | block/blk-core.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/block/blk-core.c b/block/blk-core.c index f61460b65408..1be49be9fac4 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -514,10 +514,11 @@ static inline void bio_check_ro(struct bio *bio) if (op_is_flush(bio->bi_opf) && !bio_sectors(bio)) return; - if (bio->bi_bdev->bd_ro_warned) + if (bdev_test_flag(bio->bi_bdev, BD_RO_WARNED)) return; - bio->bi_bdev->bd_ro_warned = true; + bdev_set_flag(bio->bi_bdev, BD_RO_WARNED); + /* * Use ioctl to set underlying disk of raid/dm to read-only * will trigger this. |