[PATCH] block: Fix the comment error in the __register_blkdev function.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The comment for the __register_blkdev function states that if
the major parameter of this function is 0, it will return the
major value upon successful execution, and the range of major
is [1..BLKDEV_MAJOR_MAX-1].

However, It seems that in this case, the actual returned
major is in the range of [1..BLKDEV_MAJOR_HASH_SIZE-1].

Therefore, we will modify the comment to ensure that it is
consistent with the actual range of the major value returned
by the function.

Signed-off-by: MengEn Sun <mengensun@xxxxxxxxxxx>
---
 block/genhd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/block/genhd.c b/block/genhd.c
index 9130e16..188163f 100644
--- a/block/genhd.c
+++ b/block/genhd.c
@@ -204,7 +204,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.
-- 
1.8.3.1





[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux