Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 32634
b: refs/heads/master
c: bef317e
h: refs/heads/master
v: v3
  • Loading branch information
Nathan Scott authored and Linus Torvalds committed Jul 15, 2006
1 parent 7f82957 commit 65b6bb3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 086626a747300e37043a553dac639c5900c4a2c0
refs/heads/master: bef317e364f065717819fbbe7965d4401820286c
10 changes: 10 additions & 0 deletions trunk/drivers/block/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,16 @@ config BLK_DEV_RAM_SIZE
what are you doing. If you are using IBM S/390, then set this to
8192.

config BLK_DEV_RAM_BLOCKSIZE
int "Default RAM disk block size (bytes)"
depends on BLK_DEV_RAM
default "1024"
help
The default value is 1024 kilobytes. PAGE_SIZE is a much more
efficient choice however. The default is kept to ensure initrd
setups function - apparently needed by the rd_load_image routine
that supposes the filesystem in the image uses a 1024 blocksize.

config BLK_DEV_INITRD
bool "Initial RAM filesystem and RAM disk (initramfs/initrd) support"
depends on BROKEN || !FRV
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/block/rd.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ int rd_size = CONFIG_BLK_DEV_RAM_SIZE; /* Size of the RAM disks */
* behaviour. The default is still BLOCK_SIZE (needed by rd_load_image that
* supposes the filesystem in the image uses a BLOCK_SIZE blocksize).
*/
static int rd_blocksize = BLOCK_SIZE; /* blocksize of the RAM disks */
static int rd_blocksize = CONFIG_BLK_DEV_RAM_BLOCKSIZE;

/*
* Copyright (C) 2000 Linus Torvalds.
Expand Down

0 comments on commit 65b6bb3

Please sign in to comment.