Changeset 7fff5eab in mainline for uspace/srv/vfs/vfs_node.c
- Timestamp:
- 2008-01-08T20:38:59Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 67f63c4
- Parents:
- 752ccee
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs_node.c
r752ccee r7fff5eab 43 43 #include <rwlock.h> 44 44 #include <libadt/hash_table.h> 45 #include <assert.h> 45 46 46 47 /** Futex protecting the VFS node hash table. */ … … 122 123 * 123 124 * @param triplet Triplet encoding the identity of the VFS node. 125 * @param size Size of the node as filled by vfs_lookup_internal(). 124 126 * 125 127 * @return VFS node corresponding to the given triplet. 126 128 */ 127 vfs_node_t *vfs_node_get(vfs_triplet_t *triplet )129 vfs_node_t *vfs_node_get(vfs_triplet_t *triplet, size_t size) 128 130 { 129 131 unsigned long key[] = { … … 147 149 node->dev_handle = triplet->fs_handle; 148 150 node->index = triplet->index; 151 node->size = size; 149 152 link_initialize(&node->nh_link); 150 153 rwlock_initialize(&node->contents_rwlock); … … 153 156 node = hash_table_get_instance(tmp, vfs_node_t, nh_link); 154 157 } 158 159 assert(node->size == size); 160 155 161 _vfs_node_addref(node); 156 162 futex_up(&nodes_futex);
Note:
See TracChangeset
for help on using the changeset viewer.