Changeset a76e76b in mainline


Ignore:
Timestamp:
2022-08-24T12:41:45Z (2 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2fbd49c
Parents:
a247c32
git-author:
hekkihek <richard@…> (2022-08-22 20:22:08)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2022-08-24 12:41:45)
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

    ra247c32 ra76e76b  
    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.