]> www.infradead.org Git - users/dwmw2/linux.git/commit
block: return bool from get_disk_ro and bdev_read_only
authorChristoph Hellwig <hch@lst.de>
Tue, 19 Nov 2024 16:09:23 +0000 (17:09 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 20 Nov 2024 02:07:13 +0000 (19:07 -0700)
commit766a71ef65bb217ed8bf1c068ac14c7d3c15d487
tree92c52550bbecf0e40d0c3ca987a507f032789d55
parente888810bc4f471f85989a0991aff28d2ac9f783b
block: return bool from get_disk_ro and bdev_read_only

get_disk_ro and bdev_read_only return boolean conditions,
don't masquerade them as int.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Link: https://lore.kernel.org/r/20241119160932.1327864-7-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/blkdev.h