Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ext4/src/extent.c

    rf167c851 r09ab0a9a  
    643643
    644644        uint16_t delete_count = block_count -
    645             (first_fblock - ext4_extent_get_start(path_ptr->extent));
     645            (ext4_extent_get_start(path_ptr->extent) - first_fblock);
    646646
    647647        /* Release all blocks */
     
    888888                ext4_extent_path_t *old_root = path + 1;
    889889
    890                 for (int i = path->depth; i >= 0; i--)
    891                         path[i + 1] = path[i];
    892 
     890                size_t nbytes = sizeof(ext4_extent_path_t) * (path->depth + 1);
     891                memmove(old_root, new_root, nbytes);
    893892                memset(new_root, 0, sizeof(ext4_extent_path_t));
    894893
Note: See TracChangeset for help on using the changeset viewer.