Changeset 8810c63 in mainline
- Timestamp:
- 2009-10-01T11:50:28Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5643a04, f5af635
- Parents:
- 9a15176
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/fat/fat_ops.c
r9a15176 r8810c63 331 331 continue; 332 332 case FAT_DENTRY_LAST: 333 /* miss */ 333 334 rc = block_put(b); 334 /* expect EOK as b was not dirty */335 assert(rc == EOK);336 335 fibril_mutex_unlock(&parentp->idx->lock); 337 336 *rfn = NULL; 338 return EOK;337 return rc; 339 338 default: 340 339 case FAT_DENTRY_VALID: … … 361 360 */ 362 361 rc = block_put(b); 363 /* expect EOK as b was not dirty */ 364 assert(rc == EOK); 365 return ENOMEM; 362 return (rc == EOK) ? ENOMEM : rc; 366 363 } 367 364 rc = fat_node_get_core(&nodep, idx); 368 365 assert(rc == EOK); 369 366 fibril_mutex_unlock(&idx->lock); 370 rc = block_put(b); 371 /* expect EOK as b was not dirty */ 372 assert(rc == EOK); 367 (void) block_put(b); 373 368 *rfn = FS_NODE(nodep); 374 369 return EOK; … … 376 371 } 377 372 rc = block_put(b); 378 assert(rc == EOK); /* expect EOK as b was not dirty */ 373 if (rc != EOK) { 374 fibril_mutex_unlock(&parentp->idx->lock); 375 return rc; 376 } 379 377 } 380 378 … … 810 808 case FAT_DENTRY_LAST: 811 809 rc = block_put(b); 812 /* expect EOK as b was not dirty */813 assert(rc == EOK);814 810 fibril_mutex_unlock(&nodep->idx->lock); 815 811 *has_children = false; 816 return EOK;812 return rc; 817 813 default: 818 814 case FAT_DENTRY_VALID: 819 815 rc = block_put(b); 820 /* expect EOK as b was not dirty */821 assert(rc == EOK);822 816 fibril_mutex_unlock(&nodep->idx->lock); 823 817 *has_children = true; 824 return EOK;818 return rc; 825 819 } 826 820 } 827 821 rc = block_put(b); 828 assert(rc == EOK); /* expect EOK as b was not dirty */ 822 if (rc != EOK) { 823 fibril_mutex_unlock(&nodep->idx->lock); 824 return rc; 825 } 829 826 } 830 827
Note:
See TracChangeset
for help on using the changeset viewer.