Skip to content

Commit

Permalink
init, Documentation: Remove ramdisk_blocksize mentions
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Jonathan Corbet <[email protected]>
  • Loading branch information
RobertCElliott authored and Jonathan Corbet committed Dec 26, 2015
1 parent 563c17c commit b035396
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
3 changes: 0 additions & 3 deletions Documentation/kernel-parameters.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3053,9 +3053,6 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
raid= [HW,RAID]
See Documentation/md.txt.

ramdisk_blocksize= [RAM]
See Documentation/blockdev/ramdisk.txt.

ramdisk_size= [RAM] Sizes of RAM disks in kilobytes
See Documentation/blockdev/ramdisk.txt.

Expand Down
7 changes: 0 additions & 7 deletions init/do_mounts_rd.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,13 +216,6 @@ int __init rd_load_image(char *from)
/*
* NOTE NOTE: nblocks is not actually blocks but
* the number of kibibytes of data to load into a ramdisk.
* So any ramdisk block size that is a multiple of 1KiB should
* work when the appropriate ramdisk_blocksize is specified
* on the command line.
*
* The default ramdisk_blocksize is 1KiB and it is generally
* silly to use anything else, so make sure to use 1KiB
* blocksize while generating ext2fs ramdisk-images.
*/
if (sys_ioctl(out_fd, BLKGETSIZE, (unsigned long)&rd_blocks) < 0)
rd_blocks = 0;
Expand Down

0 comments on commit b035396

Please sign in to comment.