diff options
author | Christoph Hellwig <hch@lst.de> | 2021-11-22 14:06:22 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-11-29 06:38:35 -0700 |
commit | 1ebe2e5f9d68e94c524aba876f27b945669a7879 (patch) | |
tree | e0de8a0a5eb068a3de89c5cf346730ea9e1349b6 /drivers/block/null_blk/main.c | |
parent | 3b5149ac50970669ee0ddb9629ec77ffd5c0622d (diff) | |
download | linux-stable-1ebe2e5f9d68e94c524aba876f27b945669a7879.tar.gz linux-stable-1ebe2e5f9d68e94c524aba876f27b945669a7879.tar.bz2 linux-stable-1ebe2e5f9d68e94c524aba876f27b945669a7879.zip |
block: remove GENHD_FL_EXT_DEVT
All modern drivers can support extra partitions using the extended
dev_t. In fact except for the ioctl method drivers never even see
partitions in normal operation.
So remove the GENHD_FL_EXT_DEVT and allow extra partitions for all
block devices that do support partitions, and require those that
do not support partitions to explicit disallow them using
GENHD_FL_NO_PART.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20211122130625.1136848-12-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/null_blk/main.c')
-rw-r--r-- | drivers/block/null_blk/main.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/block/null_blk/main.c b/drivers/block/null_blk/main.c index eb17def1f265..54f7d490f8eb 100644 --- a/drivers/block/null_blk/main.c +++ b/drivers/block/null_blk/main.c @@ -1850,7 +1850,6 @@ static int null_gendisk_register(struct nullb *nullb) set_capacity(disk, size); - disk->flags |= GENHD_FL_EXT_DEVT; disk->major = null_major; disk->first_minor = nullb->index; disk->minors = 1; |