The patch titled ramdisk blocksize Kconfig entry has been added to the -mm tree. Its filename is ramdisk-blocksize-kconfig-entry.patch See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: ramdisk blocksize Kconfig entry From: Nathan Scott <nathans@xxxxxxx> Make the ramdisk blocksize configurable at kernel compilation time rather than only at boot or module load time, like a couple of the other ramdisk options. I found this handy awhile back but thought little of it, until recently asked by a few of the testing folks here to be able to do the same thing for their automated test setups. The Kconfig comment is largely lifted from comments in rd.c, and hopefully this will increase the chances of making folks aware that the default value often isn't a great choice here (for increasing values of PAGE_SIZE, even moreso). Signed-off-by: Nathan Scott <nathans@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- drivers/block/Kconfig | 10 ++++++++++ drivers/block/rd.c | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff -puN drivers/block/Kconfig~ramdisk-blocksize-kconfig-entry drivers/block/Kconfig --- a/drivers/block/Kconfig~ramdisk-blocksize-kconfig-entry +++ a/drivers/block/Kconfig @@ -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 diff -puN drivers/block/rd.c~ramdisk-blocksize-kconfig-entry drivers/block/rd.c --- a/drivers/block/rd.c~ramdisk-blocksize-kconfig-entry +++ a/drivers/block/rd.c @@ -84,7 +84,7 @@ int rd_size = CONFIG_BLK_DEV_RAM_SIZE; * 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. _ Patches currently in -mm which might be from nathans@xxxxxxx are origin.patch git-xfs.patch add-address_space_operationsbatch_write.patch add-address_space_operationsbatch_write-fix.patch update-ramdisk-documentation.patch ramdisk-blocksize-kconfig-entry.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html