summaryrefslogtreecommitdiff
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 08:14:29 -0700
commit98f49b63e84d4ee1a5c327d0b5f4e8699f6c70fe (patch)
tree28189dec1c4433734a6033c522c9ad89e6c364cc /block/ioctl.c
parent7a2f0ce19f2e2ed93b5ace60375b908392ec8afb (diff)
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;
}