Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

null_blk: don't suppress partitioning information

This manually reverts commit 27290b469051 ("null_blk: suppress invalid
partition info"). The message in that commit log can't appearch as
the flag is never checked during probing, and there is no good reason
to treat null_blk special in /proc/partitions.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20211122130625.1136848-9-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Christoph Hellwig and committed by
Jens Axboe
94b49c3d 14086280

+1 -1
+1 -1
drivers/block/null_blk/main.c
··· 1850 1850 1851 1851 set_capacity(disk, size); 1852 1852 1853 - disk->flags |= GENHD_FL_EXT_DEVT | GENHD_FL_SUPPRESS_PARTITION_INFO; 1853 + disk->flags |= GENHD_FL_EXT_DEVT; 1854 1854 disk->major = null_major; 1855 1855 disk->first_minor = nullb->index; 1856 1856 disk->minors = 1;