Skip to content
Snippets Groups Projects
Commit b2f0e44f authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Laibin Qiu
Browse files

block: move the NEED_PART_SCAN flag to struct gendisk

mainline inclusion
from mainline-v5.10-rc1
commit 38430f08
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I5ETAB


CVE: NA

-------------------------------------------------

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

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>

Conflicts:
	block/genhd.c
	drivers/ide/ide-gd.c
	fs/block_dev.c
	include/linux/blk_types.h

Signed-off-by: default avatarLuo Meng <luomeng12@huawei.com>
Reviewed-by: default avatarJason Yan <yanaijie@huawei.com>
Signed-off-by: default avatarLaibin Qiu <qiulaibin@huawei.com>
parent b6113052
No related branches found
No related tags found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment