1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-11-22 11:59:21 +02:00

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 2008-11-28 10:16:41 +00:00 committed by Andy Green
parent ade0e093da
commit 39fc2afbf4

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);