block: move the policy field to struct block_device
authorChristoph Hellwig <hch@lst.de>
Mon, 23 Nov 2020 15:36:02 +0000 (16:36 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 1 Dec 2020 21:53:40 +0000 (14:53 -0700)
commit83950d359010a493462d58c712b1124c877d1b3b
tree303ad13fa9390c8764e8dde72119d789f14df769
parentb309e9936347232c724eaa13f70533128b4864e9
block: move the policy field to struct block_device

Move the policy field to struct block_device and rename it to the
more descriptive bd_read_only.  Also turn the field into a bool as it
is used as such.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c
block/genhd.c
block/ioctl.c
block/partitions/core.c
include/linux/blk_types.h
include/linux/genhd.h