block: move the NEED_PART_SCAN flag to struct gendisk
authorChristoph Hellwig <hch@lst.de>
Mon, 21 Sep 2020 07:19:45 +0000 (09:19 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 23 Sep 2020 16:43:18 +0000 (10:43 -0600)
commit38430f0876fa8b9549ec434f569dce03e057c076
treeb8137369a29bfc6158d781ad1e4897cbd6a2062f
parent07d098e6bbad04030dab5b3e64149601fcb063ce
block: move the NEED_PART_SCAN flag to struct gendisk

We can only scan for partitions on the whole disk, so move the flag
from struct block_device to struct gendisk.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/genhd.c
drivers/block/nbd.c
drivers/ide/ide-gd.c
fs/block_dev.c
include/linux/blk_types.h
include/linux/genhd.h