Changes in uspace/lib/ext4/libext4_ialloc.c [2f591127:38542dc] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ext4/libext4_ialloc.c
r2f591127 r38542dc 204 204 rc = block_get(&bitmap_block, fs->device, bitmap_block_addr, 205 205 BLOCK_FLAGS_NONE); 206 if (rc != EOK) { 207 ext4_filesystem_put_block_group_ref(bg_ref); 206 if (rc != EOK) 208 207 return rc; 209 }210 208 211 209 /* Try to allocate i-node in the bitmap */ … … 217 215 /* Block group has not any free i-node */ 218 216 if (rc == ENOSPC) { 219 rc = block_put(bitmap_block); 220 if (rc != EOK) { 221 ext4_filesystem_put_block_group_ref(bg_ref); 222 return rc; 223 } 224 225 rc = ext4_filesystem_put_block_group_ref(bg_ref); 226 if (rc != EOK) 227 return rc; 228 229 bgid++; 217 block_put(bitmap_block); 218 ext4_filesystem_put_block_group_ref(bg_ref); 230 219 continue; 231 220 } … … 235 224 236 225 rc = block_put(bitmap_block); 237 if (rc != EOK) { 238 ext4_filesystem_put_block_group_ref(bg_ref); 226 if (rc != EOK) 239 227 return rc; 240 }241 228 242 229 /* Modify filesystem counters */ … … 285 272 286 273 /* Block group not modified, put it and jump to the next block group */ 287 rc = ext4_filesystem_put_block_group_ref(bg_ref); 288 if (rc != EOK) 289 return rc; 290 274 ext4_filesystem_put_block_group_ref(bg_ref); 291 275 ++bgid; 292 276 }
Note:
See TracChangeset
for help on using the changeset viewer.