Rev 3653 | Rev 4509 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3653 | Rev 4463 | ||
---|---|---|---|
Line 178... | Line 178... | ||
178 | node->type = result->type; |
178 | node->type = result->type; |
179 | link_initialize(&node->nh_link); |
179 | link_initialize(&node->nh_link); |
180 | rwlock_initialize(&node->contents_rwlock); |
180 | rwlock_initialize(&node->contents_rwlock); |
181 | hash_table_insert(&nodes, key, &node->nh_link); |
181 | hash_table_insert(&nodes, key, &node->nh_link); |
182 | } else { |
182 | } else { |
183 | node = hash_table_get_instance(tmp, vfs_node_t, nh_link); |
183 | node = hash_table_get_instance(tmp, vfs_node_t, nh_link); |
184 | if (node->type == VFS_NODE_UNKNOWN && |
184 | if (node->type == VFS_NODE_UNKNOWN && |
185 | result->type != VFS_NODE_UNKNOWN) { |
185 | result->type != VFS_NODE_UNKNOWN) { |
186 | /* Upgrade the node type. */ |
186 | /* Upgrade the node type. */ |
187 | node->type = result->type; |
187 | node->type = result->type; |
188 | } |
188 | } |
Line 231... | Line 231... | ||
231 | { |
231 | { |
232 | } |
232 | } |
233 | 233 | ||
234 | /** |
234 | /** |
235 | * @} |
235 | * @} |
236 | */ |
236 | */ |