Changeset baa2a33 in mainline for uspace/lib/ext4/src/extent.c


Ignore:
Timestamp:
2022-08-22T20:22:08Z (21 months ago)
Author:
GitHub <noreply@…>
Parents:
0d59ea7e
git-author:
hekkihek <richard@…> (2022-08-22 20:22:08)
git-committer:
GitHub <noreply@…> (2022-08-22 20:22:08)
Message:

Fix partial release of first extent

For partial release, first_fblock > start of extent, this fix makes delete_count smaller than block_count instead of larger as it should be.

File:
1 edited

Legend:

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

    r0d59ea7e rbaa2a33  
    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 */
Note: See TracChangeset for help on using the changeset viewer.