Actually the maximum dynamic major number of block device will be BLKDEV_MAJOR_HASH_SIZE-1, so just fix the function comment correctly. Signed-off-by: Chengguang Xu <cgxu519@xxxxxxxxxxxx> --- block/genhd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/genhd.c b/block/genhd.c index c9a4fc90d3e9..0965f10813da 100644 --- a/block/genhd.c +++ b/block/genhd.c @@ -231,7 +231,7 @@ void blkdev_show(struct seq_file *seqf, off_t offset) * then the function returns zero on success, or a negative error code * - if any unused major number was requested with @major = 0 parameter * then the return value is the allocated major number in range - * [1..BLKDEV_MAJOR_MAX-1] or a negative error code otherwise + * [1..BLKDEV_MAJOR_HASH_SIZE-1] or a negative error code otherwise * * See Documentation/admin-guide/devices.txt for the list of allocated * major numbers. -- 2.27.0