https://bugzilla.kernel.org/show_bug.cgi?id=15792 --- Comment #5 from Dmitry Monakhov <dmonakhov@xxxxxxxxxx> 2010-04-19 03:42:20 --- Ohh.. one more thing, which is not actually related with the name of the bug, But this peace of code was already mention here. Let's just document this here. fs/ext4/extents.c 3288:int ext4_ext_get_blocks(...) { .... 3477: if (unlikely(EXT4_I(inode)->i_flags & EXT4_EOFBLOCKS_FL)) { 3478: if (unlikely(!eh->eh_entries)) { 3479: EXT4_ERROR_INODE(inode, 3480: "eh->eh_entries == 0 ee_block %d", 3481: ex->ee_block); 3482: err = -EIO; 3483: goto out2; 3484: } 3485: last_ex = EXT_LAST_EXTENT(eh); 3486: if (iblock + ar.len > le32_to_cpu(last_ex->ee_block) 3487: + ext4_ext_get_actual_len(last_ex)) ##### ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ##### If depth > 0 then last_ex may not be the latest extent of the file. ##### because "eh" is just a one of leafs(writing at the middle of a file) ##### We have to find latest extent by traversing a whole path again but ##### always chose the latest eh,ex. 3488: EXT4_I(inode)->i_flags &= ~EXT4_EOFBLOCKS_FL; for ( 3489: } -- Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html