diff options
author | Christoph Hellwig <hch@lst.de> | 2020-11-03 11:00:17 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-11-16 08:14:29 -0700 |
commit | 98f49b63e84d4ee1a5c327d0b5f4e8699f6c70fe (patch) | |
tree | 28189dec1c4433734a6033c522c9ad89e6c364cc /block/genhd.c | |
parent | 7a2f0ce19f2e2ed93b5ace60375b908392ec8afb (diff) | |
download | linux-98f49b63e84d4ee1a5c327d0b5f4e8699f6c70fe.tar.gz linux-98f49b63e84d4ee1a5c327d0b5f4e8699f6c70fe.tar.bz2 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 'block/genhd.c')
-rw-r--r-- | block/genhd.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/block/genhd.c b/block/genhd.c index 9387f050c248..b85db1f2233c 100644 --- a/block/genhd.c +++ b/block/genhd.c @@ -1846,13 +1846,6 @@ static void set_disk_ro_uevent(struct gendisk *gd, int ro) kobject_uevent_env(&disk_to_dev(gd)->kobj, KOBJ_CHANGE, envp); } -void set_device_ro(struct block_device *bdev, int flag) -{ - bdev->bd_part->policy = flag; -} - -EXPORT_SYMBOL(set_device_ro); - void set_disk_ro(struct gendisk *disk, int flag) { struct disk_part_iter piter; |