mirror of
git://projects.qi-hardware.com/xburst-tools.git
synced 2024-11-22 23:21:53 +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:
parent
ade0e093da
commit
39fc2afbf4
@ -362,7 +362,7 @@ static int ext2fs_read_block(ext2fs_node_t node, int fileblock) {
|
|||||||
indir2_size = blksz;
|
indir2_size = blksz;
|
||||||
}
|
}
|
||||||
if ((__le32_to_cpu(indir1_block[rblock / perblock]) <<
|
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,
|
status = ext2fs_devread(__le32_to_cpu(indir1_block[rblock / perblock]), log2_blksz,
|
||||||
0, blksz,
|
0, blksz,
|
||||||
(char *) indir2_block);
|
(char *) indir2_block);
|
||||||
|
Loading…
Reference in New Issue
Block a user