Al has a far nicer patch for this, which works for me. Al?
Date: Mon, 6 May 2002 03:03:04 -0400 (EDT)
From: Alexander Viro <viro@math.psu.edu>
To: Linus Torvalds <torvalds@transmeta.com>
cc: linux-kernel@vger.kernel.org
Subject: [PATCH] rd.c blocksize fix
(fallout from blksize_size[] removal)
rd.c depends on exact value of blocksize being set from the very
beginning.
--- drivers/block/rd.c Fri May 3 03:26:05 2002
+++ /tmp/rd.c Mon May 6 03:00:00 2002
@@ -376,6 +376,7 @@
rd_bdev[unit] = bdget(kdev_t_to_nr(inode->i_rdev));
rd_bdev[unit]->bd_openers++;
rd_bdev[unit]->bd_inode->i_mapping->a_ops = &ramdisk_aops;
+ rd_bdev[unit]->bd_block_size = rd_blocksize;
}
return 0;
-- Russell King (rmk@arm.linux.org.uk) The developer of ARM Linux http://www.arm.linux.org.uk/personal/aboutme.html- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/