diff options
-rw-r--r-- | drivers/block/Kconfig | 10 | ||||
-rw-r--r-- | drivers/block/rd.c | 2 |
2 files changed, 11 insertions, 1 deletions
diff --git a/drivers/block/Kconfig b/drivers/block/Kconfig index 93d94749310b..b5382cedf0c0 100644 --- a/drivers/block/Kconfig +++ b/drivers/block/Kconfig | |||
@@ -400,6 +400,16 @@ config BLK_DEV_RAM_SIZE | |||
400 | what are you doing. If you are using IBM S/390, then set this to | 400 | what are you doing. If you are using IBM S/390, then set this to |
401 | 8192. | 401 | 8192. |
402 | 402 | ||
403 | config BLK_DEV_RAM_BLOCKSIZE | ||
404 | int "Default RAM disk block size (bytes)" | ||
405 | depends on BLK_DEV_RAM | ||
406 | default "1024" | ||
407 | help | ||
408 | The default value is 1024 kilobytes. PAGE_SIZE is a much more | ||
409 | efficient choice however. The default is kept to ensure initrd | ||
410 | setups function - apparently needed by the rd_load_image routine | ||
411 | that supposes the filesystem in the image uses a 1024 blocksize. | ||
412 | |||
403 | config BLK_DEV_INITRD | 413 | config BLK_DEV_INITRD |
404 | bool "Initial RAM filesystem and RAM disk (initramfs/initrd) support" | 414 | bool "Initial RAM filesystem and RAM disk (initramfs/initrd) support" |
405 | depends on BROKEN || !FRV | 415 | depends on BROKEN || !FRV |
diff --git a/drivers/block/rd.c b/drivers/block/rd.c index 3cf246abb5ec..a3f64bfe6b58 100644 --- a/drivers/block/rd.c +++ b/drivers/block/rd.c | |||
@@ -84,7 +84,7 @@ int rd_size = CONFIG_BLK_DEV_RAM_SIZE; /* Size of the RAM disks */ | |||
84 | * behaviour. The default is still BLOCK_SIZE (needed by rd_load_image that | 84 | * behaviour. The default is still BLOCK_SIZE (needed by rd_load_image that |
85 | * supposes the filesystem in the image uses a BLOCK_SIZE blocksize). | 85 | * supposes the filesystem in the image uses a BLOCK_SIZE blocksize). |
86 | */ | 86 | */ |
87 | static int rd_blocksize = BLOCK_SIZE; /* blocksize of the RAM disks */ | 87 | static int rd_blocksize = CONFIG_BLK_DEV_RAM_BLOCKSIZE; |
88 | 88 | ||
89 | /* | 89 | /* |
90 | * Copyright (C) 2000 Linus Torvalds. | 90 | * Copyright (C) 2000 Linus Torvalds. |