Changes in uspace/srv/fs/cdfs/cdfs_ops.c [48cc66f:7ae01d5] in mainline
- File:
-
- 1 edited
-
uspace/srv/fs/cdfs/cdfs_ops.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/cdfs/cdfs_ops.c
r48cc66f r7ae01d5 1 1 /* 2 * Copyright (c) 202 6Jiri Svoboda2 * Copyright (c) 2024 Jiri Svoboda 3 3 * Copyright (c) 2011 Martin Decky 4 4 * All rights reserved. … … 298 298 } 299 299 300 static bool nodes_key_equal(const void *k, size_t hash,const ht_link_t *item)300 static bool nodes_key_equal(const void *k, const ht_link_t *item) 301 301 { 302 302 cdfs_node_t *node = hash_table_get_inst(item, cdfs_node_t, nh_link); … … 341 341 342 342 ht_link_t *link = hash_table_find(&nodes, &key); 343 if (!link) { 343 if (link) { 344 cdfs_node_t *node = 345 hash_table_get_inst(link, cdfs_node_t, nh_link); 346 347 *rfn = FS_NODE(node); 348 } else 344 349 *rfn = NULL; 345 return EBADF; 346 } 347 348 cdfs_node_t *node = hash_table_get_inst(link, cdfs_node_t, nh_link); 349 *rfn = FS_NODE(node); 350 350 351 return EOK; 351 352 } … … 394 395 errno_t rc = cdfs_root_get(&rootfn, fs->service_id); 395 396 396 assert(rc == EOK || rc == EBADF);397 assert(rc == EOK); 397 398 398 399 if (!rootfn) … … 1353 1354 cdfs_node_t *node = hash_table_get_inst(item, cdfs_node_t, nh_link); 1354 1355 1355 /* Remove closed, but root node is always in memory. */ 1356 if (!node->opened && node->index != 0) { 1356 if (!node->opened) { 1357 1357 hash_table_remove_item(&nodes, item); 1358 1358
Note:
See TracChangeset
for help on using the changeset viewer.
