Skip to content

Commit b035396

Browse files
RobertCElliottJonathan Corbet
authored andcommitted
init, Documentation: Remove ramdisk_blocksize mentions
The brd driver has never supported the ramdisk_blocksize kernel parameter that was in the rd driver it replaced, so remove mention of this parameter from comments and Documentation. Commit 9db5579 ("rewrite rd") replaced rd with brd, keeping a brd_blocksize variable in struct brd_device but never using it. Commit a2cba29 ("brd: get rid of unused members from struct brd_device") removed the unused variable. Commit f5abc8e ("Documentation/blockdev/ramdisk.txt: updates") removed mentions of ramdisk_blocksize from that file. Signed-off-by: Robert Elliott <elliott@hpe.com> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
1 parent 563c17c commit b035396

2 files changed

Lines changed: 0 additions & 10 deletions

File tree

‎Documentation/kernel-parameters.txt‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3053,9 +3053,6 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
30533053
raid= [HW,RAID]
30543054
See Documentation/md.txt.
30553055

3056-
ramdisk_blocksize= [RAM]
3057-
See Documentation/blockdev/ramdisk.txt.
3058-
30593056
ramdisk_size= [RAM] Sizes of RAM disks in kilobytes
30603057
See Documentation/blockdev/ramdisk.txt.
30613058

‎init/do_mounts_rd.c‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -216,13 +216,6 @@ int __init rd_load_image(char *from)
216216
/*
217217
* NOTE NOTE: nblocks is not actually blocks but
218218
* the number of kibibytes of data to load into a ramdisk.
219-
* So any ramdisk block size that is a multiple of 1KiB should
220-
* work when the appropriate ramdisk_blocksize is specified
221-
* on the command line.
222-
*
223-
* The default ramdisk_blocksize is 1KiB and it is generally
224-
* silly to use anything else, so make sure to use 1KiB
225-
* blocksize while generating ext2fs ramdisk-images.
226219
*/
227220
if (sys_ioctl(out_fd, BLKGETSIZE, (unsigned long)&rd_blocks) < 0)
228221
rd_blocks = 0;

0 commit comments

Comments
 (0)