]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbb2d52bd33abfbd1d45338b88ff4673950b153aa
treeb8137369a29bfc6158d781ad1e4897cbd6a2062f
parentc2e36e7d25304f07347f96f39e4745b824c8d2ff
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