Ignore:
File:
1 edited

Legend:

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

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