diff options
author | Liu Aleaxander <Aleaxander@gmail.com> | 2009-05-13 15:13:37 +0800 |
---|---|---|
committer | Liu Aleaxander <Aleaxander@gmail.com> | 2009-05-13 15:13:37 +0800 |
commit | 88ff90bf492d4f3597f74daef020af26f3b9d8c4 (patch) | |
tree | 2813a324d58bcfc54d7d4d82309b448b338b9f5c /extlinux.c | |
parent | b6985a112b8a0e34d989d4a57555d0d7318c0718 (diff) | |
download | devel-88ff90bf492d4f3597f74daef020af26f3b9d8c4.tar.gz devel-88ff90bf492d4f3597f74daef020af26f3b9d8c4.tar.xz devel-88ff90bf492d4f3597f74daef020af26f3b9d8c4.zip |
Update README file and makes some cange in function ext4_find_leaf
Diffstat (limited to 'extlinux.c')
-rw-r--r-- | extlinux.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -349,14 +349,16 @@ ext4_find_leaf (struct ext4_extent_header *eh, __u32 block) while (1) { - index = EXT4_FIRST_INDEX(eh); - if (eh->eh_magic != EXT4_EXT_MAGIC) return NULL; + /* got it */ if (eh->eh_depth == 0) return eh; + index = EXT4_FIRST_INDEX(eh); + + for ( i = 0; i < eh->eh_entries; i++ ) { if ( block < index[i].ei_block ) break; |