diff options
author | Christoph Hellwig <hch@lst.de> | 2020-11-03 11:00:17 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-11-16 16:14:29 +0100 |
commit | 98f49b63e84d4ee1a5c327d0b5f4e8699f6c70fe (patch) | |
tree | 28189dec1c4433734a6033c522c9ad89e6c364cc /include | |
parent | loop: use set_disk_ro (diff) | |
download | linux-98f49b63e84d4ee1a5c327d0b5f4e8699f6c70fe.tar.xz linux-98f49b63e84d4ee1a5c327d0b5f4e8699f6c70fe.zip |
block: remove set_device_ro
Fold set_device_ro into its only remaining caller.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/genhd.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/genhd.h b/include/linux/genhd.h index 03da3f603d30..52eb592c874a 100644 --- a/include/linux/genhd.h +++ b/include/linux/genhd.h @@ -304,7 +304,6 @@ extern void del_gendisk(struct gendisk *gp); extern struct gendisk *get_gendisk(dev_t dev, int *partno); extern struct block_device *bdget_disk(struct gendisk *disk, int partno); -extern void set_device_ro(struct block_device *bdev, int flag); extern void set_disk_ro(struct gendisk *disk, int flag); static inline int get_disk_ro(struct gendisk *disk) |