summaryrefslogtreecommitdiffstats
path: root/block/ioctl.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-11-03 11:00:17 +0100
committerJens Axboe <axboe@kernel.dk>2020-11-16 16:14:29 +0100
commit98f49b63e84d4ee1a5c327d0b5f4e8699f6c70fe (patch)
tree28189dec1c4433734a6033c522c9ad89e6c364cc /block/ioctl.c
parentloop: use set_disk_ro (diff)
downloadlinux-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 'block/ioctl.c')
-rw-r--r--block/ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/ioctl.c b/block/ioctl.c
index 96cb45447364..04255dc5f3bf 100644
--- a/block/ioctl.c
+++ b/block/ioctl.c
@@ -371,7 +371,7 @@ static int blkdev_roset(struct block_device *bdev, fmode_t mode,
if (ret)
return ret;
}
- set_device_ro(bdev, n);
+ bdev->bd_part->policy = n;
return 0;
}