Changeset b6d7b7c in mainline for uspace/lib/ext4/libext4_extent.c
- Timestamp:
- 2012-04-14T16:29:09Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1df3f57a
- Parents:
- 831507b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ext4/libext4_extent.c
r831507b rb6d7b7c 769 769 } 770 770 771 uint32_t phys_block = 0;772 773 771 // Add new extent to the node 774 772 if (path_ptr->extent == NULL) { … … 779 777 uint16_t block_limit = (1 << 15); 780 778 779 uint32_t phys_block = 0; 781 780 if (block_count < block_limit) { 782 781 … … 791 790 ext4_extent_set_start(path_ptr->extent, phys_block); 792 791 ext4_extent_set_block_count(path_ptr->extent, 1); 792 793 ext4_inode_set_size(inode_ref->inode, inode_size + block_size); 794 inode_ref->dirty = true; 793 795 794 796 path_ptr->block->dirty = true; … … 813 815 814 816 ext4_extent_set_block_count(path_ptr->extent, block_count + 1); 817 818 ext4_inode_set_size(inode_ref->inode, inode_size + block_size); 819 inode_ref->dirty = true; 815 820 816 821 path_ptr->block->dirty = true; … … 840 845 ext4_extent_set_start(path_ptr->extent, phys_block); 841 846 847 ext4_inode_set_size(inode_ref->inode, inode_size + block_size); 848 inode_ref->dirty = true; 849 842 850 path_ptr->block->dirty = true; 843 851
Note:
See TracChangeset
for help on using the changeset viewer.