Changes in uspace/srv/fs/cdfs/cdfs_ops.c [7ae01d5:48cc66f] 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
r7ae01d5 r48cc66f 1 1 /* 2 * Copyright (c) 202 4Jiri Svoboda2 * Copyright (c) 2026 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, const ht_link_t *item)300 static bool nodes_key_equal(const void *k, size_t hash, 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) { 344 cdfs_node_t *node = 345 hash_table_get_inst(link, cdfs_node_t, nh_link); 346 347 *rfn = FS_NODE(node); 348 } else 343 if (!link) { 349 344 *rfn = NULL; 350 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); 351 350 return EOK; 352 351 } … … 395 394 errno_t rc = cdfs_root_get(&rootfn, fs->service_id); 396 395 397 assert(rc == EOK );396 assert(rc == EOK || rc == EBADF); 398 397 399 398 if (!rootfn) … … 1354 1353 cdfs_node_t *node = hash_table_get_inst(item, cdfs_node_t, nh_link); 1355 1354 1356 if (!node->opened) { 1355 /* Remove closed, but root node is always in memory. */ 1356 if (!node->opened && node->index != 0) { 1357 1357 hash_table_remove_item(&nodes, item); 1358 1358
Note:
See TracChangeset
for help on using the changeset viewer.
