Changeset 553492be in mainline for uspace/srv/vfs/vfs_ops.c
- Timestamp:
- 2009-06-17T22:33:08Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ac47b7c2
- Parents:
- ca093b3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs_ops.c
rca093b3 r553492be 44 44 #include <string.h> 45 45 #include <bool.h> 46 #include <futex.h>47 46 #include <fibril_sync.h> 48 47 #include <adt/list.h> … … 1132 1131 */ 1133 1132 vfs_node_t *node = vfs_node_get(&lr); 1134 f utex_down(&nodes_futex);1133 fibril_mutex_lock(&nodes_mutex); 1135 1134 node->lnkcnt--; 1136 f utex_up(&nodes_futex);1135 fibril_mutex_unlock(&nodes_mutex); 1137 1136 fibril_rwlock_write_unlock(&namespace_rwlock); 1138 1137 vfs_node_put(node); … … 1283 1282 return; 1284 1283 } 1285 f utex_down(&nodes_futex);1284 fibril_mutex_lock(&nodes_mutex); 1286 1285 new_node->lnkcnt--; 1287 f utex_up(&nodes_futex);1286 fibril_mutex_unlock(&nodes_mutex); 1288 1287 break; 1289 1288 default: … … 1305 1304 return; 1306 1305 } 1307 f utex_down(&nodes_futex);1306 fibril_mutex_lock(&nodes_mutex); 1308 1307 old_node->lnkcnt++; 1309 f utex_up(&nodes_futex);1308 fibril_mutex_unlock(&nodes_mutex); 1310 1309 /* Destroy the link for the old name. */ 1311 1310 rc = vfs_lookup_internal(oldc, L_UNLINK, NULL, NULL); … … 1320 1319 return; 1321 1320 } 1322 f utex_down(&nodes_futex);1321 fibril_mutex_lock(&nodes_mutex); 1323 1322 old_node->lnkcnt--; 1324 f utex_up(&nodes_futex);1323 fibril_mutex_unlock(&nodes_mutex); 1325 1324 fibril_rwlock_write_unlock(&namespace_rwlock); 1326 1325 vfs_node_put(old_node);
Note:
See TracChangeset
for help on using the changeset viewer.