Changeset 18b6a88 in mainline for uspace/srv/fs/mfs/mfs_ops.c
- Timestamp:
- 2018-04-15T09:35:04Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c1f44ca
- Parents:
- 8ebe212
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/mfs/mfs_ops.c
r8ebe212 r18b6a88 103 103 open_nodes_key_hash(void *key) 104 104 { 105 node_key_t *node_key = (node_key_t *)key;105 node_key_t *node_key = (node_key_t *)key; 106 106 return hash_combine(node_key->service_id, node_key->index); 107 107 } … … 117 117 open_nodes_key_equal(void *key, const ht_link_t *item) 118 118 { 119 node_key_t *node_key = (node_key_t *)key;119 node_key_t *node_key = (node_key_t *)key; 120 120 struct mfs_node *mnode = hash_table_get_inst(item, struct mfs_node, link); 121 121 122 return node_key->service_id == mnode->instance->service_id 123 &&node_key->index == mnode->ino_i->index;122 return node_key->service_id == mnode->instance->service_id && 123 node_key->index == mnode->ino_i->index; 124 124 } 125 125 … … 361 361 if (sbi) 362 362 free(sbi); 363 if (instance)363 if (instance) 364 364 free(instance); 365 365 return rc; … … 871 871 async_answer_0(chandle, rc != EOK ? rc : ENOENT); 872 872 return rc; 873 found:873 found: 874 874 async_data_read_finalize(chandle, d_info.d_name, 875 875 str_size(d_info.d_name) + 1); … … 1102 1102 static bool 1103 1103 check_magic_number(uint16_t magic, bool *native, 1104 1104 mfs_version_t *version, bool *longfilenames) 1105 1105 { 1106 1106 bool rc = true;
Note:
See TracChangeset
for help on using the changeset viewer.