qi-fix-ext2-inefficiency-bug.patch

Naughty bug bug U-Boot ext2 implementation -- cut and paste of stanza above for
indir1 check used for indir2 but not all the check was not updated.

This removes hundreds of repeated reads of same sector during kernel load.

Signed-off-by: Andy Green <andy@openmoko.com>
This commit is contained in:
Andy Green authored and Andy Green committed 2008-11-28 10:16:41 +00:00
1 parent ade0e093da
commit 39fc2afbf4
1 file changed
+1 -1
+1 -1
View File
@@ -362,7 +362,7 @@ static int ext2fs_read_block(ext2fs_node_t node, int fileblock) {
indir2_size = blksz;
}
if ((__le32_to_cpu(indir1_block[rblock / perblock]) <<
log2_blksz) != indir1_blkno) {
log2_blksz) != indir2_blkno) {
status = ext2fs_devread(__le32_to_cpu(indir1_block[rblock / perblock]), log2_blksz,
0, blksz,
(char *) indir2_block);