Changeset 84239b1 in mainline for uspace/lib/ext4/src
- Timestamp:
- 2018-03-11T19:39:11Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f3d47c97
- Parents:
- 850fd32
- Location:
- uspace/lib/ext4/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ext4/src/balloc.c
r850fd32 r84239b1 352 352 uint32_t free_blocks; 353 353 uint32_t goal; 354 uint32_t block_size; 354 355 355 356 /* Find GOAL */ … … 585 586 586 587 success: 587 /* Empty command - because of syntax */ 588 ; 589 590 uint32_t block_size = ext4_superblock_get_block_size(sb); 588 block_size = ext4_superblock_get_block_size(sb); 591 589 592 590 /* Update superblock free blocks count */ -
uspace/lib/ext4/src/extent.c
r850fd32 r84239b1 476 476 uint16_t pos = 0; 477 477 errno_t rc; 478 errno_t rc2; 478 479 while (ext4_extent_header_get_depth(eh) != 0) { 479 480 /* Search index in index node by iblock */ … … 513 514 514 515 cleanup: 515 ; 516 517 errno_t rc2 = EOK; 516 rc2 = EOK; 518 517 519 518 /* … … 623 622 /* Find the first extent to modify */ 624 623 ext4_extent_path_t *path; 624 errno_t rc2; 625 625 errno_t rc = ext4_extent_find_extent(inode_ref, iblock_from, &path); 626 626 if (rc != EOK) … … 734 734 735 735 cleanup: 736 ; 737 738 errno_t rc2 = EOK; 736 rc2 = EOK; 739 737 740 738 /* … … 982 980 /* Load the nearest leaf (with extent) */ 983 981 ext4_extent_path_t *path; 982 errno_t rc2; 984 983 errno_t rc = ext4_extent_find_extent(inode_ref, new_block_idx, &path); 985 984 if (rc != EOK) … … 1086 1085 1087 1086 finish: 1088 ; 1089 1090 errno_t rc2 = EOK; 1087 rc2 = EOK; 1091 1088 1092 1089 /* Set return values */ -
uspace/lib/ext4/src/ops.c
r850fd32 r84239b1 219 219 ext4_node_t *eparent = EXT4_NODE(pfn); 220 220 ext4_filesystem_t *fs = eparent->instance->filesystem; 221 errno_t rc2; 221 222 222 223 if (!ext4_inode_is_type(fs->superblock, eparent->inode_ref->inode, … … 244 245 245 246 exit: 246 ;247 248 247 /* Destroy search result structure */ 249 errno_t constrc2 = ext4_directory_destroy_result(&result);248 rc2 = ext4_directory_destroy_result(&result); 250 249 return rc == EOK ? rc2 : rc; 251 250 } … … 1279 1278 { 1280 1279 fs_node_t *fn; 1280 errno_t rc2; 1281 1281 errno_t rc = ext4_node_get(&fn, service_id, index); 1282 1282 if (rc != EOK) … … 1395 1395 1396 1396 exit: 1397 ; 1398 1399 errno_t const rc2 = ext4_node_put(fn); 1397 rc2 = ext4_node_put(fn); 1400 1398 return rc == EOK ? rc2 : rc; 1401 1399 }
Note:
See TracChangeset
for help on using the changeset viewer.