Changeset 3e2952b in mainline for uspace/lib/ext4/libext4_balloc.c


Ignore:
Timestamp:
2012-04-05T17:49:29Z (13 years ago)
Author:
Frantisek Princ <frantisek.princ@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
adf4f13
Parents:
9c2d19d
Message:

more debugged version of releasing file/dir using extent

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ext4/libext4_balloc.c

    r9c2d19d r3e2952b  
    161161                        ext4_balloc_get_bgid_of_block(sb, first);
    162162        uint32_t block_group_last =
    163                         ext4_balloc_get_bgid_of_block(sb, first + count);
    164 
    165         EXT4FS_DBG("first =\%u (bg \%u), last = \%u (bg \%u)", first,  block_group_first, first + count, block_group_last);
    166 
    167         ext4_block_group_ref_t *bg_ref;
     163                        ext4_balloc_get_bgid_of_block(sb, first + count - 1);
     164
     165        assert(block_group_first == block_group_last);
     166
    168167        rc = ext4_filesystem_get_block_group_ref(fs, block_group_first, &bg_ref);
    169168        if (rc != EOK) {
Note: See TracChangeset for help on using the changeset viewer.