Changes in uspace/srv/fs/fat/fat_ops.c [5ca5eaa7:ffa2c8ef] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/fat/fat_ops.c
r5ca5eaa7 rffa2c8ef 325 325 uint16_t_le2host(d->firstc)); 326 326 if (rc != EOK) { 327 (void) block_put(b);328 327 (void) fat_node_put(FS_NODE(nodep)); 329 328 return rc; … … 812 811 fibril_mutex_unlock(&childp->idx->lock); 813 812 childp->lnkcnt = 0; 814 childp->refcnt++; /* keep the node in memory until destroyed */815 813 childp->dirty = true; 816 814 fibril_mutex_unlock(&childp->lock); … … 1490 1488 fs_index_t index = (fs_index_t)IPC_GET_ARG2(*request); 1491 1489 fs_node_t *fn; 1492 fat_node_t *nodep;1493 1490 int rc; 1494 1491 … … 1502 1499 return; 1503 1500 } 1504 1505 nodep = FAT_NODE(fn);1506 /*1507 * We should have exactly two references. One for the above1508 * call to fat_node_get() and one from fat_unlink().1509 */1510 assert(nodep->refcnt == 2);1511 1501 1512 1502 rc = fat_destroy_node(fn);
Note:
See TracChangeset
for help on using the changeset viewer.