Changeset d0c9b4b in mainline for uspace/lib/ext4/libext4_extent.c
- Timestamp:
- 2012-05-24T16:00:54Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- fb04cd90
- Parents:
- fa3704d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ext4/libext4_extent.c
rfa3704d rd0c9b4b 666 666 667 667 // If leaf node is empty, the whole tree must be checked and the node will be released 668 bool check_tree= false;668 bool remove_parent_record = false; 669 669 670 670 // Don't release root block (including inode data) !!! … … 674 674 goto cleanup; 675 675 } 676 check_tree= true;676 remove_parent_record = true; 677 677 } 678 678 … … 688 688 689 689 // Correct entry because of changes in the previous iteration 690 if ( check_tree) {690 if (remove_parent_record) { 691 691 entries--; 692 ext4_extent_header_set_entries_count(path_ptr->header, entries);693 } else {694 // TODO check this condition695 break;696 692 } 697 693 … … 704 700 ++index; 705 701 --entries; 706 ext4_extent_header_set_entries_count(path_ptr->header, entries); 707 } 702 } 703 704 ext4_extent_header_set_entries_count(path_ptr->header, entries); 708 705 709 706 path_ptr->block->dirty = true; … … 717 714 718 715 // Mark parent to be checked 719 check_tree= true;716 remove_parent_record = true; 720 717 } else { 721 check_tree= false;718 remove_parent_record = false; 722 719 } 723 720
Note:
See TracChangeset
for help on using the changeset viewer.