]> git.baikalelectronics.ru Git - kernel.git/commit
loop: use set_disk_ro
authorChristoph Hellwig <hch@lst.de>
Tue, 3 Nov 2020 10:00:16 +0000 (11:00 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 16 Nov 2020 15:14:29 +0000 (08:14 -0700)
commit40c3743787fd16aa848da24e79e82af4f88ff28a
treeddc33d08fea0908339cfa45cfe15a862dfc1589f
parent8a77b0a13f76812b5ae01fcb1a4092e5745880e4
loop: use set_disk_ro

Use set_disk_ro instead of set_device_ro to match all other block
drivers and to ensure all partitions mirror the read-only flag.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/loop.c