FIX: [uboot] additional patch for ext4 read errors with newer kernels
BugzID: 55425
This commit is contained in:
parent
59adf3fe0e
commit
06c6857a6c
|
|
@ -1423,7 +1423,7 @@ static struct ext4_extent_header *ext4fs_get_extent_block
|
||||||
{
|
{
|
||||||
struct ext4_extent_idx *index;
|
struct ext4_extent_idx *index;
|
||||||
unsigned long long block;
|
unsigned long long block;
|
||||||
struct ext_filesystem *fs = get_fs();
|
int blksz = EXT2_BLOCK_SIZE(data);
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
|
|
@ -1447,7 +1447,7 @@ static struct ext4_extent_header *ext4fs_get_extent_block
|
||||||
block = le32_to_cpu(index[i].ei_leaf_hi);
|
block = le32_to_cpu(index[i].ei_leaf_hi);
|
||||||
block = (block << 32) + le32_to_cpu(index[i].ei_leaf_lo);
|
block = (block << 32) + le32_to_cpu(index[i].ei_leaf_lo);
|
||||||
|
|
||||||
if (ext4fs_devread(block << log2_blksz, 0, fs->blksz, buf))
|
if (ext4fs_devread(block << log2_blksz, 0, blksz, buf))
|
||||||
ext_block = (struct ext4_extent_header *)buf;
|
ext_block = (struct ext4_extent_header *)buf;
|
||||||
else
|
else
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue